[GRASS-SVN] r35602 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 25 04:57:13 EST 2009


Author: martinl
Date: 2009-01-25 04:57:13 -0500 (Sun, 25 Jan 2009)
New Revision: 35602

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gselect.py
Log:
wxGUI: check if g.mlist is available not platform


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gselect.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gselect.py	2009-01-25 03:29:09 UTC (rev 35601)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gselect.py	2009-01-25 09:57:13 UTC (rev 35602)
@@ -22,7 +22,6 @@
 
 import os
 import sys
-import platform
 
 import wx
 import wx.combo
@@ -213,10 +212,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