Skip to content

Commit a0fe7d7

Browse files
committed
Change from os.path.expanduser("~") + "\\AppData\\Roaming\\MathCAT" to using %APPDATA%.
1 parent 134ae49 commit a0fe7d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addon/globalPlugins/MathCAT/MathCATPreferences.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,12 +536,12 @@ def path_to_default_preferences():
536536
@staticmethod
537537
def path_to_user_preferences_folder():
538538
# the user preferences file is stored at: C:\Users\<user-name>AppData\Roaming\MathCAT\prefs.yaml
539-
return os.path.expanduser("~") + "\\AppData\\Roaming\\MathCAT"
539+
return os.path.join(os.path.expandvars('%APPDATA%'), "MathCAT")
540540

541541
@staticmethod
542542
def path_to_user_preferences():
543543
# the user preferences file is stored at: C:\Users\<user-name>AppData\Roaming\MathCAT\prefs.yaml
544-
return UserInterface.path_to_user_preferences_folder() + "\\prefs.yaml"
544+
return os.path.join(UserInterface.path_to_user_preferences_folder(), "prefs.yaml")
545545

546546
@staticmethod
547547
def load_default_preferences():

0 commit comments

Comments
 (0)