Explorar el Código

pygrass: fix GridModule on Windows - colon can be in rc file in path

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@66753 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová hace 9 años
padre
commit
20a7557d8d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/python/pygrass/modules/grid/grid.py

+ 1 - 1
lib/python/pygrass/modules/grid/grid.py

@@ -121,7 +121,7 @@ def read_gisrc(gisrc):
     """
     """
     with open(gisrc, 'r') as gfile:
     with open(gisrc, 'r') as gfile:
         gis = dict([(k.strip(), v.strip())
         gis = dict([(k.strip(), v.strip())
-                    for k, v in [row.split(':') for row in gfile]])
+                    for k, v in [row.split(':', 1) for row in gfile]])
     return gis['MAPSET'], gis['LOCATION_NAME'], gis['GISDBASE']
     return gis['MAPSET'], gis['LOCATION_NAME'], gis['GISDBASE']