Browse Source

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 years ago
parent
commit
3bc19d868d
1 changed files with 3 additions and 2 deletions
  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