[GRASS-SVN] r66753 - grass/trunk/lib/python/pygrass/modules/grid
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Nov 5 18:49:25 PST 2015
Author: annakrat
Date: 2015-11-05 18:49:25 -0800 (Thu, 05 Nov 2015)
New Revision: 66753
Modified:
grass/trunk/lib/python/pygrass/modules/grid/grid.py
Log:
pygrass: fix GridModule on Windows - colon can be in rc file in path
Modified: grass/trunk/lib/python/pygrass/modules/grid/grid.py
===================================================================
--- grass/trunk/lib/python/pygrass/modules/grid/grid.py 2015-11-05 19:42:37 UTC (rev 66752)
+++ grass/trunk/lib/python/pygrass/modules/grid/grid.py 2015-11-06 02:49:25 UTC (rev 66753)
@@ -121,7 +121,7 @@
"""
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']
More information about the grass-commit
mailing list