소스 검색

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']