[GRASS-SVN] r39414 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Oct 5 17:19:17 EDT 2009
Author: martinl
Date: 2009-10-05 17:19:17 -0400 (Mon, 05 Oct 2009)
New Revision: 39414
Modified:
grass/trunk/gui/wxpython/gui_modules/prompt.py
Log:
wxGUI: some shlex fixes
(merge r39412 from devbr6)
Modified: grass/trunk/gui/wxpython/gui_modules/prompt.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/prompt.py 2009-10-05 21:11:36 UTC (rev 39413)
+++ grass/trunk/gui/wxpython/gui_modules/prompt.py 2009-10-05 21:19:17 UTC (rev 39414)
@@ -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