[GRASS-SVN] r32421 - grass/branches/develbranch_6/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 31 15:51:20 EDT 2008


Author: martinl
Date: 2008-07-31 15:51:19 -0400 (Thu, 31 Jul 2008)
New Revision: 32421

Modified:
   grass/branches/develbranch_6/lib/init/init.sh
Log:
init.sh: add PYTHONPATH, remove tcltk hack for osxaqua (merged from trunk)

Modified: grass/branches/develbranch_6/lib/init/init.sh
===================================================================
--- grass/branches/develbranch_6/lib/init/init.sh	2008-07-31 19:32:54 UTC (rev 32420)
+++ grass/branches/develbranch_6/lib/init/init.sh	2008-07-31 19:51:19 UTC (rev 32421)
@@ -24,7 +24,7 @@
 
 trap "echo 'User break!' ; exit" 2 3 15
 
-# change to wxpython as needed
+# Set default GUI
 DEFAULT_GUI="tcltk"
 
 # the following is only meant to be an internal variable for debugging this script.
@@ -296,6 +296,13 @@
 fi
 export GRASS_PYTHON
 
+# Set PYTHONPATH to find GRASS Python modules
+if [ ! "PYTHONPATH" ] ; then
+  PYTHONPATH="$GISBASE/etc/python"
+else
+  PYTHONPATH="$GISBASE/etc/python:$PYTHONPATH"
+fi
+export PYTHONPATH
 
 # try and find a web browser if one isn't already specified
 if [ ! "$GRASS_HTML_BROWSER" ] ; then
@@ -793,18 +800,10 @@
     
     # Check for tcltk interface
     tcltk | gis.m)
-	if [ "$osxaqua" ] ; then
-		"$GISBASE/scripts/gis.m" | sh &
-	else
-		"$GISBASE/scripts/gis.m"
-	fi	
+	"$GISBASE/scripts/gis.m"
 	;;
     oldtcltk | d.m)
-	if [ "$osxaqua" ] ; then
-		"$GISBASE/scripts/d.m" | sh &
-	else
-		"$GISBASE/scripts/d.m"
-	fi
+	"$GISBASE/scripts/d.m"
 	;;
     wxpython)
         "$GISBASE/etc/wxpython/scripts/wxgui"



More information about the grass-commit mailing list