[GRASS-dev] Re: [GRASS GIS] #594: wx GUI won't start (Mac OS X
10.5.6) / Python 2.6 / wxWidgets 2.8.10 / wxPyhton 2.8.9.2
GRASS GIS
trac at osgeo.org
Sun May 10 18:45:18 EDT 2009
#594: wx GUI won't start (Mac OS X 10.5.6) / Python 2.6 / wxWidgets 2.8.10 /
wxPyhton 2.8.9.2
---------------------+------------------------------------------------------
Reporter: vince | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: reopened
Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Resolution: | Keywords: wxGUI does not load
Platform: MacOSX | Cpu: x86-64
---------------------+------------------------------------------------------
Comment (by hamish):
Replying to [comment:3 vince]:
> Ok, I have a fix.
> In g.gui main.c, the "python" string should be replaced by the
> full path leading to pythonw-32.
> Next, the Python function reexec_with_pythonw should be
> emptied, and replaced by a pass.
> It then works.
ok, so for g.gui it should use G_getenv("GRASS_PYTHON") instead of
hardcoding "python", just like it does for GRASS_WISH.
{{{
- G_spawn("python", "wxgui", progname, NULL);
+ G_spawn(G_getenv("GRASS_PYTHON"), "wxgui", progname, NULL);
}}}
shouldn't GRASS_WISH use G_getenv() there instead of getenv() directly?
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/594#comment:5>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list