[GRASS-SVN] r66061 - grass/trunk/lib/python/pygrass/modules/interface

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Aug 29 14:44:57 PDT 2015


Author: huhabla
Date: 2015-08-29 14:44:57 -0700 (Sat, 29 Aug 2015)
New Revision: 66061

Modified:
   grass/trunk/lib/python/pygrass/modules/interface/env.py
Log:
pygrass modules: Fixed #2731 reading gisrc with multiple : in an entry caused problems


Modified: grass/trunk/lib/python/pygrass/modules/interface/env.py
===================================================================
--- grass/trunk/lib/python/pygrass/modules/interface/env.py	2015-08-29 18:19:00 UTC (rev 66060)
+++ grass/trunk/lib/python/pygrass/modules/interface/env.py	2015-08-29 21:44:57 UTC (rev 66061)
@@ -16,7 +16,7 @@
         raise RuntimeError('You are not in a GRASS session, GISRC not found.')
     with open(gisrc, mode='r') as grc:
         env = dict([(k.strip(), v.strip())
-                    for k, v in [row.split(':') for row in grc if row]])
+                    for k, v in [row.split(':',1) for row in grc if row]])
     return env
 
 



More information about the grass-commit mailing list