[GRASS-SVN] r50413 - in grass/branches/develbranch_6/gui/wxpython: core gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 24 09:41:08 EST 2012


Author: martinl
Date: 2012-01-24 06:41:08 -0800 (Tue, 24 Jan 2012)
New Revision: 50413

Modified:
   grass/branches/develbranch_6/gui/wxpython/core/gcmd.py
   grass/branches/develbranch_6/gui/wxpython/gui_core/prompt.py
Log:
wxGUI: minor windows-related fixes


Modified: grass/branches/develbranch_6/gui/wxpython/core/gcmd.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/core/gcmd.py	2012-01-24 14:36:51 UTC (rev 50412)
+++ grass/branches/develbranch_6/gui/wxpython/core/gcmd.py	2012-01-24 14:41:08 UTC (rev 50413)
@@ -53,6 +53,7 @@
 
 from core       import globalvar
 from core.debug import Debug
+from core.utils import GetRealCmd
 
 def DecodeString(string):
     """!Decode string using system encoding
@@ -627,7 +628,7 @@
     if stdin:
         kwargs['stdin'] = subprocess.PIPE
     
-    ps = grass.start_command(prog, flags, overwrite, quiet, verbose, **kwargs)
+    ps = grass.start_command(GetRealCmd(prog), flags, overwrite, quiet, verbose, **kwargs)
     
     Debug.msg(2, "gcmd.RunCommand(): command started")
 

Modified: grass/branches/develbranch_6/gui/wxpython/gui_core/prompt.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_core/prompt.py	2012-01-24 14:36:51 UTC (rev 50412)
+++ grass/branches/develbranch_6/gui/wxpython/gui_core/prompt.py	2012-01-24 14:41:08 UTC (rev 50413)
@@ -791,7 +791,7 @@
         self.SetCurrentPos(pos)
         
         cmd = text.strip().split(' ')[0]
-
+        
         if not self.cmdDesc or cmd != self.cmdDesc.get_name():
             if cmd in ('r.mapcalc', 'v.type'):
                 cmd = cmd + '_wrapper'



More information about the grass-commit mailing list