Procházet zdrojové kódy

grass.py: fix reading GRASS_ADDON_PATH

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54074 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa před 12 roky
rodič
revize
c36b860d34
1 změnil soubory, kde provedl 6 přidání a 6 odebrání
  1. 6 6
      lib/init/grass.py

+ 6 - 6
lib/init/grass.py

@@ -1123,6 +1123,12 @@ create_tmp()
 # 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:
     else:
         non_interactive(args[0])
 
-# Set shell
-check_shell()
-
-# Load environmental variables from the file
-load_env()
-
 # Set language
 set_language()