[GRASS-SVN] r39412 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Oct 5 16:08:49 EDT 2009
Author: martinl
Date: 2009-10-05 16:08:48 -0400 (Mon, 05 Oct 2009)
New Revision: 39412
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/prompt.py
Log:
wxGUI: some shlex fixes
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/prompt.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/prompt.py 2009-10-05 13:39:41 UTC (rev 39411)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/prompt.py 2009-10-05 20:08:48 UTC (rev 39412)
@@ -490,12 +490,20 @@
event.Skip()
return
- cmd = shlex.split(str(text))
+ try:
+ cmd = shlex.split(str(text))
+ except ValueError, e:
+ self.statusbar.SetStatusText(str(e))
+ cmd = text.split(' ')
+
pattern = str(text)
if len(cmd) > 1:
# search for module's options
if cmd[0] in self._choicesCmd and not self._module:
- self._module = menuform.GUI().ParseInterface(cmd = cmd)
+ try:
+ self._module = menuform.GUI().ParseInterface(cmd = cmd)
+ except IOError:
+ self._module = None
if self._module:
if len(cmd[-1].split('=', 1)) == 1:
More information about the grass-commit
mailing list