[GRASS-SVN] r35603 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 25 05:04:33 EST 2009


Author: martinl
Date: 2009-01-25 05:04:33 -0500 (Sun, 25 Jan 2009)
New Revision: 35603

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py
Log:
wxGUI: check if g.mlist is available not platform
       (merge from relbr64, r35602)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py	2009-01-25 09:57:13 UTC (rev 35602)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py	2009-01-25 10:04:33 UTC (rev 35603)
@@ -22,7 +22,6 @@
 
 import os
 import sys
-import platform
 
 import wx
 import wx.combo
@@ -214,10 +213,10 @@
                 mapsets[i] = mapsets[0]
                 mapsets[0] = curr_mapset
         
-	if platform.system() == 'Windows':
-            filesdict = grass.list_grouped(elementdict[element])
-	else:
+        if 'g.mlist' in globalvar.grassCmd['all']:
             filesdict = grass.mlist_grouped(elementdict[element])
+        else:
+            filesdict = grass.list_grouped(elementdict[element])
         
         for dir in mapsets:
             dir_node = self.AddItem('Mapset: '+dir)



More information about the grass-commit mailing list