Changeset 65439
- Timestamp:
- Jun 11, 2015, 5:13:11 AM (9 years ago)
- Location:
- grass/branches/releasebranch_7_0
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
lib/python/Makefile (modified) (1 diff)
-
lib/python/pygrass/modules/interface/env.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
grass/branches/releasebranch_7_0
-
Property svn:mergeinfo
set to
/grass/trunk merged eligible
-
Property svn:mergeinfo
set to
-
grass/branches/releasebranch_7_0/lib/python/Makefile
r62379 r65439 6 6 PYDIR = $(ETC)/python/grass 7 7 8 SUBDIRS = exceptions script ctypes temporal pygrass pydispatch imaging 8 SUBDIRS = exceptions script ctypes temporal pygrass pydispatch imaging gunittest 9 9 10 10 default: $(PYDIR)/__init__.py -
grass/branches/releasebranch_7_0/lib/python/pygrass/modules/interface/env.py
r65374 r65439 16 16 raise RuntimeError('You are not in a GRASS session, GISRC not found.') 17 17 with open(gisrc, mode='r') as grc: 18 env = {k.strip(): v.strip() for k, v in [row.split(':')19 for row in grc if row]}18 env = dict([(k.strip(), v.strip()) 19 for k, v in [row.split(':') for row in grc if row]]) 20 20 return env 21 21
Note:
See TracChangeset
for help on using the changeset viewer.
