[GRASS-SVN] r57371 - grass/trunk/gui/wxpython/animation
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Aug 2 10:03:04 PDT 2013
Author: martinl
Date: 2013-08-02 10:03:04 -0700 (Fri, 02 Aug 2013)
New Revision: 57371
Modified:
grass/trunk/gui/wxpython/animation/g.gui.animation.py
Log:
g.gui.animation: launch GUI in the background
Modified: grass/trunk/gui/wxpython/animation/g.gui.animation.py
===================================================================
--- grass/trunk/gui/wxpython/animation/g.gui.animation.py 2013-08-02 17:01:48 UTC (rev 57370)
+++ grass/trunk/gui/wxpython/animation/g.gui.animation.py 2013-08-02 17:03:04 UTC (rev 57371)
@@ -114,5 +114,8 @@
app.MainLoop()
if __name__ == '__main__':
- 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