[GRASS-SVN] r36345 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Mar 12 16:16:55 EDT 2009


Author: martinl
Date: 2009-03-12 16:16:55 -0400 (Thu, 12 Mar 2009)
New Revision: 36345

Modified:
   grass/trunk/gui/wxpython/gui_modules/utils.py
Log:
wxGUI: don't use '|' as field separator (causes problems on MS Windows)

Modified: grass/trunk/gui/wxpython/gui_modules/utils.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/utils.py	2009-03-12 15:46:42 UTC (rev 36344)
+++ grass/trunk/gui/wxpython/gui_modules/utils.py	2009-03-12 20:16:55 UTC (rev 36345)
@@ -207,10 +207,10 @@
         ret = gcmd.RunCommand('g.mapsets',
                               read = True,
                               flags = 'l',
-                              fs = '|')
+                              fs = ';')
     
         if ret:
-            mapsets = ret.rstrip('\n').split('|')
+            mapsets = ret.rstrip('\n').split(';')
         else:
             raise gcmd.CmdError(cmd = 'g.mapsets',
                                 message = _('Unable to get list of available mapsets.'))
@@ -218,9 +218,9 @@
         ret = gcmd.RunCommand('g.mapsets',
                               read = True,
                               flags = 'p',
-                              fs = '|')
+                              fs = ';')
         if ret:
-            mapsets = ret.rstrip('\n').split('|')
+            mapsets = ret.rstrip('\n').split(';')
         else:
             raise gcmd.CmdError(cmd = 'g.mapsets',
                                 message = _('Unable to get list of accessible mapsets.'))



More information about the grass-commit mailing list