瀏覽代碼

wxGUI: fix grass_config_dir

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@47950 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 13 年之前
父節點
當前提交
699c5c48f9
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      gui/wxpython/gui_modules/utils.py

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

@@ -754,8 +754,9 @@ def GetSettingsPath():
         sys.exit(_("ERROR: Unable to determine GRASS version. Details: %s") % e)
     
     verFd.close()
-    
+
+    # keep location of settings files rc and wx in sync with lib/init/grass.py
     if sys.platform == 'win32':
-        return os.path.join(os.getenv('APPDATA'), '.grass%d' % version)
+        return os.path.join(os.getenv('APPDATA'), 'grass%d' % version)
     
     return os.path.join(os.getenv('HOME'), '.grass%d' % version)