[GRASS-SVN] r37138 - grass/branches/develbranch_6/general/g.gui

svn_grass at osgeo.org svn_grass at osgeo.org
Sun May 10 19:59:39 EDT 2009


Author: hamish
Date: 2009-05-10 19:59:39 -0400 (Sun, 10 May 2009)
New Revision: 37138

Modified:
   grass/branches/develbranch_6/general/g.gui/main.c
Log:
use GRASS_PYTHON env var not hardcoded name

Modified: grass/branches/develbranch_6/general/g.gui/main.c
===================================================================
--- grass/branches/develbranch_6/general/g.gui/main.c	2009-05-10 23:05:40 UTC (rev 37137)
+++ grass/branches/develbranch_6/general/g.gui/main.c	2009-05-10 23:59:39 UTC (rev 37138)
@@ -129,11 +129,11 @@
     else 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