[GRASS-SVN] r55417 - grass/trunk/gui/wxpython/core
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Mar 18 03:49:53 PDT 2013
Author: annakrat
Date: 2013-03-18 03:49:53 -0700 (Mon, 18 Mar 2013)
New Revision: 55417
Modified:
grass/trunk/gui/wxpython/core/utils.py
Log:
wxGUI: fix unsetting environmental variables (problem with 'system' locale in preferences)
Modified: grass/trunk/gui/wxpython/core/utils.py
===================================================================
--- grass/trunk/gui/wxpython/core/utils.py 2013-03-18 10:27:26 UTC (rev 55416)
+++ grass/trunk/gui/wxpython/core/utils.py 2013-03-18 10:49:53 UTC (rev 55417)
@@ -819,8 +819,9 @@
fd.close()
# update environmental variables
- if value is None and key in environ:
- del environ[key]
+ if value is None:
+ if key in environ:
+ del environ[key]
else:
environ[key] = value
More information about the grass-commit
mailing list