Quellcode durchsuchen

wxGUI/extension: ignore on Windows also -i/d flags

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49686 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa vor 13 Jahren
Ursprung
Commit
2ca7774f48
1 geänderte Dateien mit 7 neuen und 1 gelöschten Zeilen
  1. 7 1
      gui/wxpython/modules/extensions.py

+ 7 - 1
gui/wxpython/modules/extensions.py

@@ -16,6 +16,7 @@ This program is free software under the GNU General Public License
 """
 
 import os
+import sys
 
 import wx
 try:
@@ -62,6 +63,11 @@ class InstallExtensionWindow(wx.Frame):
         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 @@ class InstallExtensionWindow(wx.Frame):
                 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)