瀏覽代碼

use GRASS_PYTHON env var not hardcoded name (merge from devbr6)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@37142 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 16 年之前
父節點
當前提交
f3caeb3989
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      general/g.gui/main.c

+ 2 - 2
general/g.gui/main.c

@@ -103,11 +103,11 @@ int main(int argc, char *argv[])
     if (strcmp(type->answer, "wxpython") == 0) {
     if (strcmp(type->answer, "wxpython") == 0) {
 	sprintf(progname, "%s/etc/wxpython/wxgui.py", G_gisbase());
 	sprintf(progname, "%s/etc/wxpython/wxgui.py", G_gisbase());
 	if (rc_file->answer) {
 	if (rc_file->answer) {
-	    G_spawn("python", "wxgui", progname, "--workspace",
+	    G_spawn(getenv("GRASS_PYTHON"), "wxgui", progname, "--workspace",
 		    rc_file->answer, NULL);
 		    rc_file->answer, NULL);
 	}
 	}
 	else {
 	else {
-	    G_spawn("python", "wxgui", progname, NULL);
+	    G_spawn(getenv("GRASS_PYTHON"), "wxgui", progname, NULL);
 	}
 	}
     }
     }