[GRASS-SVN] r36281 - grass/trunk/macosx/app
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Mar 9 10:05:34 EDT 2009
Author: kyngchaos
Date: 2009-03-09 10:05:33 -0400 (Mon, 09 Mar 2009)
New Revision: 36281
Modified:
grass/trunk/macosx/app/grass.sh.in
Log:
set PYTHONPATH for GUI when bundling wxpython (from dev6 r36280)
Modified: grass/trunk/macosx/app/grass.sh.in
===================================================================
--- grass/trunk/macosx/app/grass.sh.in 2009-03-09 14:02:59 UTC (rev 36280)
+++ grass/trunk/macosx/app/grass.sh.in 2009-03-09 14:05:33 UTC (rev 36281)
@@ -125,6 +125,16 @@
### end X11 block
+# set PYTHONPATH for GUI when bundling wxpython
+if [ -d "$GISBASE/etc/wxpython" ] && [ "$GRASS_WXBUNDLED" = "1" ] ; then
+if [ "$PYTHONPATH" ] ; then
+ PYTHONPATH="$GISBASE/etc/wxpython:$PYTHONPATH"
+else
+ PYTHONPATH="$GISBASE/etc/wxpython"
+fi
+export PYTHONPATH
+fi
+
# if gisrc has text startup, switch back to Terminal (gotta duplicate some init.sh stuff)
# eventually, when TclTk optional, can run appropriate apps per GUI here (ie X11)
GISRCRC="$HOME/.grassrc7"
More information about the grass-commit
mailing list