浏览代码

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