[GRASS-SVN] r57374 - grass/trunk/gui/wxpython/gmodeler

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 2 10:07:39 PDT 2013


Author: martinl
Date: 2013-08-02 10:07:38 -0700 (Fri, 02 Aug 2013)
New Revision: 57374

Modified:
   grass/trunk/gui/wxpython/gmodeler/g.gui.gmodeler.py
Log:
g.gui.gmodeler: launch GUI in the background


Modified: grass/trunk/gui/wxpython/gmodeler/g.gui.gmodeler.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/g.gui.gmodeler.py	2013-08-02 17:06:39 UTC (rev 57373)
+++ grass/trunk/gui/wxpython/gmodeler/g.gui.gmodeler.py	2013-08-02 17:07:38 UTC (rev 57374)
@@ -64,4 +64,9 @@
     
 if __name__ == "__main__":
     options, flags = grass.parser()
-    main()
+    
+    # launch GUI in the background
+    child_pid = os.fork()
+    if child_pid == 0:
+        main()
+    os._exit(0)



More information about the grass-commit mailing list