Преглед изворни кода

Read GRASS_GUI

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@37864 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa пре 16 година
родитељ
комит
71c91dcf14
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      lib/init/grass.py

+ 3 - 1
lib/init/grass.py

@@ -194,7 +194,9 @@ def read_gui():
 	if 'GRASS_GUI' not in kv:
 	    # Set the GRASS user interface to the default if needed
 	    grass_gui = default_gui
-
+        else:
+            grass_gui = kv['GRASS_GUI']
+    
     if grass_gui == 'gui':
 	grass_gui = default_gui