使用绝对路径

This commit is contained in:
evilbeast 2022-09-13 21:43:06 +08:00
parent 5ff92ea0c7
commit 15b408d390
2 changed files with 1 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@ -9,6 +9,7 @@ def get_exec_dir():
def get_download_dir():
user_dir = os.path.join(get_exec_dir(), 'download')
user_dir = os.path.abspath(user_dir)
if not os.path.isdir(user_dir):
os.makedirs(user_dir)
return user_dir