[GRASS-SVN] r59176 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Mar 3 01:43:14 PST 2014


Author: marisn
Date: 2014-03-03 01:43:14 -0800 (Mon, 03 Mar 2014)
New Revision: 59176

Modified:
   grass/trunk/lib/init/grass.py
Log:
Language parameter migh be missing in the wx file. Thanks to Luca Delucchi for spotting this.

Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2014-03-03 09:37:46 UTC (rev 59175)
+++ grass/trunk/lib/init/grass.py	2014-03-03 09:43:14 UTC (rev 59176)
@@ -770,6 +770,7 @@
     except:
         # Language override has not been defined or is inaccessible
         return
+    language = 'None' # Such string sometimes is present in wx file
     for line in fd:
         if re.search('^language', line):
             line = line.rstrip('%s' % os.linesep)



More information about the grass-commit mailing list