[GRASS-SVN] r39764 - grass/trunk/general/g.gui

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Nov 19 13:19:47 EST 2009


Author: glynn
Date: 2009-11-19 13:19:45 -0500 (Thu, 19 Nov 2009)
New Revision: 39764

Modified:
   grass/trunk/general/g.gui/main.c
Log:
Recent versions of Python care about argv[0]


Modified: grass/trunk/general/g.gui/main.c
===================================================================
--- grass/trunk/general/g.gui/main.c	2009-11-19 11:05:35 UTC (rev 39763)
+++ grass/trunk/general/g.gui/main.c	2009-11-19 18:19:45 UTC (rev 39764)
@@ -106,11 +106,11 @@
     if (strcmp(type->answer, "wxpython") == 0) {
 	sprintf(progname, "%s/etc/wxpython/wxgui.py", G_gisbase());
 	if (rc_file->answer) {
-	    G_spawn_ex(getenv("GRASS_PYTHON"), "wxgui", progname,
+	    G_spawn_ex(getenv("GRASS_PYTHON"), progname, progname,
 		    "--workspace", rc_file->answer, SF_BACKGROUND, NULL);
 	}
 	else {
-	    G_spawn_ex(getenv("GRASS_PYTHON"), "wxgui", progname,
+	    G_spawn_ex(getenv("GRASS_PYTHON"), progname, progname,
 		    SF_BACKGROUND, NULL);
 	}
     }



More information about the grass-commit mailing list