[GRASS-SVN] r49687 -
grass/branches/develbranch_6/gui/wxpython/modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Dec 12 11:27:19 EST 2011
Author: martinl
Date: 2011-12-12 08:27:19 -0800 (Mon, 12 Dec 2011)
New Revision: 49687
Modified:
grass/branches/develbranch_6/gui/wxpython/modules/extensions.py
Log:
wxGUI/extension: ignore on Windows also -i/d flags
(merge r49686 from trunk)
Modified: grass/branches/develbranch_6/gui/wxpython/modules/extensions.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/modules/extensions.py 2011-12-12 16:24:13 UTC (rev 49686)
+++ grass/branches/develbranch_6/gui/wxpython/modules/extensions.py 2011-12-12 16:27:19 UTC (rev 49687)
@@ -16,6 +16,7 @@
"""
import os
+import sys
import wx
try:
@@ -64,6 +65,11 @@
task = gtask.parse_interface('g.extension.py')
+ 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', '')
@@ -71,7 +77,7 @@
desc = f.get('description', '')
if not name and not desc:
continue
- if name in ('l', 'c', 'f', 'g', '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