[GRASS-SVN] r37899 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jun 15 17:25:53 EDT 2009


Author: martinl
Date: 2009-06-15 17:25:53 -0400 (Mon, 15 Jun 2009)
New Revision: 37899

Modified:
   grass/trunk/lib/init/grass.py
Log:
run wxGUI in background


Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2009-06-15 20:45:13 UTC (rev 37898)
+++ grass/trunk/lib/init/grass.py	2009-06-15 21:25:53 UTC (rev 37899)
@@ -591,9 +591,10 @@
     
     # Check for gui interface
     if grass_gui == "wxpython":
-	call([os.getenv('GRASS_PYTHON'),
-              gfile("etc", "wxpython", "wxgui.py")])
-
+        subprocess.Popen([os.getenv('GRASS_PYTHON'),
+                          gfile("etc", "wxpython", "wxgui.py")],
+                         stdout=subprocess.PIPE)
+    
 def clear_screen():
     if windows:
 	pass



More information about the grass-commit mailing list