修改Windows配置目录
This commit is contained in:
parent
d6cfe4de6c
commit
d2888a944b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue