[GRASS-SVN] r37141 - grass/branches/releasebranch_6_4/general/g.gui
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun May 10 22:52:50 EDT 2009
Author: hamish
Date: 2009-05-10 22:52:50 -0400 (Sun, 10 May 2009)
New Revision: 37141
Modified:
grass/branches/releasebranch_6_4/general/g.gui/main.c
Log:
use GRASS_PYTHON env var not hardcoded name (merge from devbr6)
Modified: grass/branches/releasebranch_6_4/general/g.gui/main.c
===================================================================
--- grass/branches/releasebranch_6_4/general/g.gui/main.c 2009-05-11 02:47:04 UTC (rev 37140)
+++ grass/branches/releasebranch_6_4/general/g.gui/main.c 2009-05-11 02:52:50 UTC (rev 37141)
@@ -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