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

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Feb 21 10:56:20 EST 2008


Author: martinl
Date: 2008-02-21 10:56:20 -0500 (Thu, 21 Feb 2008)
New Revision: 30278

Modified:
   grass/trunk/general/g.gui/main.c
Log:
g.gui: do not use wxgui script to start wxGUI, http://lists.osgeo.org/pipermail/grass-dev/2008-February/035762.html

Modified: grass/trunk/general/g.gui/main.c
===================================================================
--- grass/trunk/general/g.gui/main.c	2008-02-21 14:34:50 UTC (rev 30277)
+++ grass/trunk/general/g.gui/main.c	2008-02-21 15:56:20 UTC (rev 30278)
@@ -90,12 +90,12 @@
 	}
     }
     else if (strcmp(type->answer, "wxpython") == 0) {
-	sprintf (progname, "%s/etc/wxpython/scripts/wxgui", G_gisbase());
+	sprintf (progname, "%s/etc/wxpython/wxgui.py", G_gisbase());
 	if (rc_file->answer) {
-	    G_spawn(progname, "wxgui", rc_file->answer, NULL);
+	    G_spawn("python", "wxgui", progname, "--workspace", rc_file->answer, NULL);
 	}
 	else {
-	    G_spawn(progname, "wxgui", NULL);
+	    G_spawn("python", "wxgui", progname, NULL);
 	}
     }
 



More information about the grass-commit mailing list