修改Windows配置目录

This commit is contained in:
liyp 2022-04-27 22:26:59 +08:00
parent d6cfe4de6c
commit d2888a944b

View file

@ -12,7 +12,7 @@ def return_work_dir():
os.mkdir(work_path) os.mkdir(work_path)
return os.path.expandvars('$HOME') + '/.config/PyQtToDoList/' return os.path.expandvars('$HOME') + '/.config/PyQtToDoList/'
elif platform.system() == 'Windows': elif platform.system() == 'Windows':
work_path = os.getcwd() + '/config/' work_path = os.getcwd() + '/../config/'
if not os.path.exists(work_path): if not os.path.exists(work_path):
os.mkdir(work_path) os.mkdir(work_path)
return work_path return work_path