[GRASS-SVN] r40039 - grass/branches/develbranch_6/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Dec 17 20:21:28 EST 2009


Author: hamish
Date: 2009-12-17 20:21:27 -0500 (Thu, 17 Dec 2009)
New Revision: 40039

Modified:
   grass/branches/develbranch_6/gui/wxpython/wxgui.py
Log:
adjust to allow cygwin to run an xterm (bug #693)

Modified: grass/branches/develbranch_6/gui/wxpython/wxgui.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/wxgui.py	2009-12-17 14:18:47 UTC (rev 40038)
+++ grass/branches/develbranch_6/gui/wxpython/wxgui.py	2009-12-18 01:21:27 UTC (rev 40039)
@@ -979,7 +979,7 @@
 
         gisbase = os.environ['GISBASE']
 
-        if 'OS' in os.environ and os.environ['OS'] == "Windows_NT":
+        if sys.platform == win32:
             runbat = os.path.join(gisbase,'etc','grass-run.bat')
             cmdlist = ["cmd.exe", "/c", 'start "%s"' % runbat, command]
         else:



More information about the grass-commit mailing list