浏览代码

wxGUI/welcome screen: don't report error on unknown location

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@53940 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 年之前
父节点
当前提交
3bc19d868d
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      gui/wxpython/gis_set.py

+ 3 - 2
gui/wxpython/gis_set.py

@@ -212,8 +212,9 @@ class GRASSStartup(wx.Frame):
         
         self.OnSetDatabase(None)
         location = self.GetRCValue("LOCATION_NAME")
-        if location == "<UNKNOWN>" or \
-                not os.path.isdir(os.path.join(self.gisdbase, location)):
+        if location == "<UNKNOWN>":
+            return
+        if os.path.isdir(os.path.join(self.gisdbase, location)):
             location = None
         
         # list of locations