[GRASS-SVN] r54995 - grass/trunk/lib/python/script

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 11 00:59:36 PST 2013


Author: annakrat
Date: 2013-02-11 00:59:36 -0800 (Mon, 11 Feb 2013)
New Revision: 54995

Modified:
   grass/trunk/lib/python/script/raster.py
Log:
fix raster querying on Windows (problem with pipe character as a separator)

Modified: grass/trunk/lib/python/script/raster.py
===================================================================
--- grass/trunk/lib/python/script/raster.py	2013-02-10 16:16:16 UTC (rev 54994)
+++ grass/trunk/lib/python/script/raster.py	2013-02-11 08:59:36 UTC (rev 54995)
@@ -152,9 +152,11 @@
             coord_list.append('%f,%f' % (e, n))
     
     sep = '|'
+    # separator '|' not included in command
+    # because | is causing problems on Windows
+    # change separator?
     cmdParams = dict(quiet = True,
                      flags = 'rf',
-                     separator = sep,
                      map = ','.join(map_list),
                      coordinates = ','.join(coord_list),
                      null = _("No data"))



More information about the grass-commit mailing list