[GRASS-SVN] r49686 - grass/trunk/gui/wxpython/modules

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 12 11:24:13 EST 2011


Author: martinl
Date: 2011-12-12 08:24:13 -0800 (Mon, 12 Dec 2011)
New Revision: 49686

Modified:
   grass/trunk/gui/wxpython/modules/extensions.py
Log:
wxGUI/extension: ignore on Windows also -i/d flags 


Modified: grass/trunk/gui/wxpython/modules/extensions.py
===================================================================
--- grass/trunk/gui/wxpython/modules/extensions.py	2011-12-12 16:05:12 UTC (rev 49685)
+++ grass/trunk/gui/wxpython/modules/extensions.py	2011-12-12 16:24:13 UTC (rev 49686)
@@ -16,6 +16,7 @@
 """
 
 import os
+import sys
 
 import wx
 try:
@@ -62,6 +63,11 @@
         self.optionBox = wx.StaticBox(parent = self.panel, id = wx.ID_ANY,
                                       label = " %s " % _("Options"))
         task = gtask.parse_interface('g.extension')
+        ignoreFlags = ['l', 'c', 'g', 'f', 'quiet', 'verbose']
+        if sys.platform == 'win32':
+            ignoreFlags.append('d')
+            ignoreFlags.append('i')
+        
         for f in task.get_options()['flags']:
             name = f.get('name', '')
             desc = f.get('label', '')
@@ -69,7 +75,7 @@
                 desc = f.get('description', '')
             if not name and not desc:
                 continue
-            if name in ('l', 'c', 'g', 'f', 'quiet', 'verbose'):
+            if name in ignoreFlags:
                 continue
             self.options[name] = wx.CheckBox(parent = self.panel, id = wx.ID_ANY,
                                              label = desc)



More information about the grass-commit mailing list