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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 28 17:18:25 PDT 2013


Author: wenzeslaus
Date: 2013-08-28 17:18:25 -0700 (Wed, 28 Aug 2013)
New Revision: 57537

Modified:
   grass/trunk/general/g.gui/main.c
Log:
g.gui: using interpreter path rather than script path as zeroth argument to fix max os x posix_spawn error (No such file or directory)

Modified: grass/trunk/general/g.gui/main.c
===================================================================
--- grass/trunk/general/g.gui/main.c	2013-08-29 00:13:22 UTC (rev 57536)
+++ grass/trunk/general/g.gui/main.c	2013-08-29 00:18:25 UTC (rev 57537)
@@ -114,11 +114,11 @@
     if (strcmp(type->answer, "wxpython") == 0) {
 	sprintf(progname, "%s/etc/gui/wxpython/wxgui.py", G_gisbase());
 	if (rc_file->answer) {
-	    G_spawn_ex(getenv("GRASS_PYTHON"), progname, progname,
+	    G_spawn_ex(getenv("GRASS_PYTHON"), getenv("GRASS_PYTHON"), progname,
 		    "--workspace", rc_file->answer, SF_BACKGROUND, NULL);
 	}
 	else {
-	    G_spawn_ex(getenv("GRASS_PYTHON"), progname, progname,
+	    G_spawn_ex(getenv("GRASS_PYTHON"), getenv("GRASS_PYTHON"), progname,
 		    SF_BACKGROUND, NULL);
 	}
     }



More information about the grass-commit mailing list