Commits

Vinay Sajip committed f825354

Closes #13: Now uses LOCALAPPDATA instead of APPDATA.

Comments (0)

Files changed (2)

CLILauncher/launcher.c

 #else
     debug(L"launcher executable: Console\n");
 #endif
-
-    hr = SHGetFolderPathW(NULL, CSIDL_APPDATA, NULL, 0, appdata_ini_path);
+    /* Get the local appdata folder (non-roaming) */
+    hr = SHGetFolderPathW(NULL, CSIDL_LOCAL_APPDATA,
+                          NULL, 0, appdata_ini_path);
     if (hr != S_OK) {
         debug(L"SHGetFolderPath failed: %X\n", hr);
         appdata_ini_path[0] = L'\0';
     def setUp(self):
         ScriptMaker.setUp(self)
 
-        self.local_ini = path = os.path.join(os.environ['APPDATA'],
+        self.local_ini = path = os.path.join(os.environ['LOCALAPPDATA'],
                                                   'py.ini')
         self.local_config = read_data(path)
         self.global_ini = path = os.path.join(os.path.dirname(LAUNCHER),