[GRASS-SVN] r53940 - grass/trunk/gui/wxpython
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Nov 20 10:39:34 PST 2012
Author: martinl
Date: 2012-11-20 10:39:34 -0800 (Tue, 20 Nov 2012)
New Revision: 53940
Modified:
grass/trunk/gui/wxpython/gis_set.py
Log:
wxGUI/welcome screen: don't report error on unknown location
Modified: grass/trunk/gui/wxpython/gis_set.py
===================================================================
--- grass/trunk/gui/wxpython/gis_set.py 2012-11-20 18:05:53 UTC (rev 53939)
+++ grass/trunk/gui/wxpython/gis_set.py 2012-11-20 18:39:34 UTC (rev 53940)
@@ -212,8 +212,9 @@
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
More information about the grass-commit
mailing list