[GRASS-SVN] r36280 - grass/branches/develbranch_6/macosx/app
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Mar 9 10:03:00 EDT 2009
Author: kyngchaos
Date: 2009-03-09 10:02:59 -0400 (Mon, 09 Mar 2009)
New Revision: 36280
Modified:
grass/branches/develbranch_6/macosx/app/grass.sh.in
Log:
set PYTHONPATH for GUI when bundling wxpython
Modified: grass/branches/develbranch_6/macosx/app/grass.sh.in
===================================================================
--- grass/branches/develbranch_6/macosx/app/grass.sh.in 2009-03-09 13:21:48 UTC (rev 36279)
+++ grass/branches/develbranch_6/macosx/app/grass.sh.in 2009-03-09 14:02:59 UTC (rev 36280)
@@ -173,6 +173,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/.grassrc6"
More information about the grass-commit
mailing list