On Thu, Jan 28, 2010 at 2:50 PM, Glynn Clements <[email protected]> wrote: > > Markus Neteler wrote: > >> While backporting below, I found this unported change 6.5 -> 6.4: >> >> @@ -1989,7 +1998,7 @@ >> >> sprintf(script, "%s/etc/wxpython/gui_modules/menuform.py", >> getenv("GISBASE")); >> - G_spawn(getenv("GRASS_PYTHON"), "menuform.py", script, pgm_name, NULL); >> + G_spawn(getenv("GRASS_PYTHON"), getenv("GRASS_PYTHON"), script, >> pgm_name, NULL); >> } >> >> Also backport? > > May as well. > > This is a workaround for a Gentoo bug. On Gentoo, "python" is a > launcher which invokes the "active" version of Python. Unfortunately, > it cares about argv[0]. > > The change causes the invocation to mirror normal execution of a > script from the shell (i.e. argv[0] is set to the name of the > interpreter). > > Even without the change, the Gentoo bug can be worked around by > setting GRASS_PYTHON to the specific Python interpreter (e.g. > "python2.6") rather than the launcher ("python").
OK, done in r40722 to attract more Gentoo users. Markus _______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
