[GRASS-SVN] r49692 -
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Dec 12 16:06:55 EST 2011
Author: martinl
Date: 2011-12-12 13:06:55 -0800 (Mon, 12 Dec 2011)
New Revision: 49692
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/ghelp.py
Log:
wxGUI/extension: ignore on Windows also -i/d flags
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/ghelp.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/ghelp.py 2011-12-12 20:36:18 UTC (rev 49691)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/ghelp.py 2011-12-12 21:06:55 UTC (rev 49692)
@@ -24,6 +24,7 @@
import os
import codecs
+import sys
import wx
try:
@@ -811,6 +812,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', '')
@@ -818,7 +824,7 @@
desc = f.get('description', '')
if not name and not desc:
continue
- if name in ('l', 'c', '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