mirror of
https://github.com/smallevilbeast/ntchat.git
synced 2026-07-02 03:24:51 +08:00
使用绝对路径
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 54 KiB |
@@ -9,6 +9,7 @@ def get_exec_dir():
|
|||||||
|
|
||||||
def get_download_dir():
|
def get_download_dir():
|
||||||
user_dir = os.path.join(get_exec_dir(), 'download')
|
user_dir = os.path.join(get_exec_dir(), 'download')
|
||||||
|
user_dir = os.path.abspath(user_dir)
|
||||||
if not os.path.isdir(user_dir):
|
if not os.path.isdir(user_dir):
|
||||||
os.makedirs(user_dir)
|
os.makedirs(user_dir)
|
||||||
return user_dir
|
return user_dir
|
||||||
|
|||||||
Reference in New Issue
Block a user