浏览代码

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á 9 年之前
父节点
当前提交
20a7557d8d
共有 1 个文件被更改,包括 1 次插入1 次删除
  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:
         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']