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

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 9 15:26:40 EST 2009


Author: martinl
Date: 2009-02-09 15:26:38 -0500 (Mon, 09 Feb 2009)
New Revision: 35837

Modified:
   grass/trunk/gui/wxpython/gui_modules/preferences.py
Log:
wxGUI: fix mapset access dialog


Modified: grass/trunk/gui/wxpython/gui_modules/preferences.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/preferences.py	2009-02-09 20:25:00 UTC (rev 35836)
+++ grass/trunk/gui/wxpython/gui_modules/preferences.py	2009-02-09 20:26:38 UTC (rev 35837)
@@ -1795,14 +1795,14 @@
         locationPath = os.path.join(gisenv['GISDBASE'], gisenv['LOCATION_NAME'])
 
         ret = gcmd.RunCommand('g.mapsets',
+                              parent = self,
                               flags = 'l',
                               fs = '|',
                               read = True)
-        ret = ret.rstrip('\n')
         
         mapsets = []
         if ret:
-            mapsets = ret.split('|')
+            mapsets = ret.rstrip('\n').split('|')
         
         for mapset in mapsets:
             index = self.InsertStringItem(sys.maxint, mapset)



More information about the grass-commit mailing list