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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun May 10 22:53:00 EDT 2009


Author: hamish
Date: 2009-05-10 22:52:59 -0400 (Sun, 10 May 2009)
New Revision: 37142

Modified:
   grass/trunk/general/g.gui/main.c
Log:
use GRASS_PYTHON env var not hardcoded name (merge from devbr6)

Modified: grass/trunk/general/g.gui/main.c
===================================================================
--- grass/trunk/general/g.gui/main.c	2009-05-11 02:52:50 UTC (rev 37141)
+++ grass/trunk/general/g.gui/main.c	2009-05-11 02:52:59 UTC (rev 37142)
@@ -103,11 +103,11 @@
     if (strcmp(type->answer, "wxpython") == 0) {
 	sprintf(progname, "%s/etc/wxpython/wxgui.py", G_gisbase());
 	if (rc_file->answer) {
-	    G_spawn("python", "wxgui", progname, "--workspace",
+	    G_spawn(getenv("GRASS_PYTHON"), "wxgui", progname, "--workspace",
 		    rc_file->answer, NULL);
 	}
 	else {
-	    G_spawn("python", "wxgui", progname, NULL);
+	    G_spawn(getenv("GRASS_PYTHON"), "wxgui", progname, NULL);
 	}
     }
 



More information about the grass-commit mailing list