Browse Source

pygrass modules: Fixed https://trac.osgeo.org/grass/ticket/2731 reading gisrc with multiple : in an entry caused problems

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@66061 15284696-431f-4ddb-bdfa-cd5b030d7da7
Soeren Gebbert 9 years ago
parent
commit
0a8c79e27c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/python/pygrass/modules/interface/env.py

+ 1 - 1
lib/python/pygrass/modules/interface/env.py

@@ -16,7 +16,7 @@ def get_env():
         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