We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e1a1dc1 + ba9c312 commit 4b1e39eCopy full SHA for 4b1e39e
1 file changed
COMTool/parameters.py
@@ -42,6 +42,10 @@ def get_config_path(configFileName):
42
if sys.platform.startswith('linux') or sys.platform.startswith('darwin') or sys.platform.startswith('freebsd'):
43
configFileDir = os.path.join(os.getenv("HOME"), ".config/comtool")
44
configFilePath = get_config_path(configFileName)
45
+elif sys.platform.startswith("win"):
46
+ appdata = os.getenv("APPDATA") or os.path.expanduser("~\\AppData\\Roaming")
47
+ configFileDir = os.path.join(appdata, appName)
48
+ configFilePath = get_config_path(configFileName)
49
else:
50
configFileDir = os.path.abspath(os.getcwd())
51
configFilePath = os.path.join(configFileDir, configFileName)
0 commit comments