Browse Source

wxGUI: don't use '|' as field separator (causes problems on MS Windows)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@36345 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 years ago
parent
commit
6221c836b1
1 changed files with 4 additions and 4 deletions
  1. 4 4
      gui/wxpython/gui_modules/utils.py

+ 4 - 4
gui/wxpython/gui_modules/utils.py

@@ -207,10 +207,10 @@ def ListOfMapsets(all=False):
         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 @@ def ListOfMapsets(all=False):
         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.'))