[GRASS-SVN] r54074 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Nov 27 02:58:16 PST 2012


Author: martinl
Date: 2012-11-27 02:58:15 -0800 (Tue, 27 Nov 2012)
New Revision: 54074

Modified:
   grass/trunk/lib/init/grass.py
Log:
grass.py: fix reading GRASS_ADDON_PATH


Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2012-11-27 10:45:23 UTC (rev 54073)
+++ grass/trunk/lib/init/grass.py	2012-11-27 10:58:15 UTC (rev 54074)
@@ -1123,6 +1123,12 @@
 # Create the session grassrc file
 create_gisrc()
 
+# Set shell (needs to be called before load_env())
+check_shell()
+
+# Load environmental variables from the file
+load_env()
+
 # Ensure GUI is set
 read_gui()
 
@@ -1174,12 +1180,6 @@
     else:
         non_interactive(args[0])
 
-# Set shell
-check_shell()
-
-# Load environmental variables from the file
-load_env()
-
 # Set language
 set_language()
 



More information about the grass-commit mailing list