[GRASS-SVN] r52582 - grass/trunk/gui/wxpython/core

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Aug 7 08:24:58 PDT 2012


Author: marisn
Date: 2012-08-07 08:24:58 -0700 (Tue, 07 Aug 2012)
New Revision: 52582

Modified:
   grass/trunk/gui/wxpython/core/settings.py
Log:
Fix WXGUI startup on non-NLS systems accidentaly broken by me :(

Modified: grass/trunk/gui/wxpython/core/settings.py
===================================================================
--- grass/trunk/gui/wxpython/core/settings.py	2012-08-07 15:10:30 UTC (rev 52581)
+++ grass/trunk/gui/wxpython/core/settings.py	2012-08-07 15:24:58 UTC (rev 52582)
@@ -56,10 +56,14 @@
         """
         import os
         
-        self.locs = os.listdir(os.path.join(os.environ['GISBASE'], 'locale'))
-        self.locs.sort()
-        # Add a default choice to not override system locale
-        self.locs.insert(0, 'system')
+        try:
+            self.locs = os.listdir(os.path.join(os.environ['GISBASE'], 'locale'))
+            self.locs.sort()
+            # Add a default choice to not override system locale
+            self.locs.insert(0, 'system')
+        except:
+            # No NLS
+            self.locs = ['system']
         
         return 'system'
         



More information about the grass-commit mailing list