فهرست منبع

wxGUI: fix unsetting environmental variables (problem with 'system' locale in preferences)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@55417 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 12 سال پیش
والد
کامیت
fa263acffa
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      gui/wxpython/core/utils.py

+ 3 - 2
gui/wxpython/core/utils.py

@@ -819,8 +819,9 @@ def StoreEnvVariable(key, value = None, envFile = None):
         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