mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2025-06-09 21:55:41 +00:00
修复部分系统下无法更新文件位置的bug
This commit is contained in:
parent
015ab129e9
commit
ee5fd84d51
@ -178,8 +178,11 @@ def __main__():
|
|||||||
os.chdir(__file__[:len(__file__)-__file__[len(__file__)::-1].index('\\')])
|
os.chdir(__file__[:len(__file__)-__file__[len(__file__)::-1].index('\\')])
|
||||||
log("更新执行位置,当前文件位置"+__file__)
|
log("更新执行位置,当前文件位置"+__file__)
|
||||||
else:
|
else:
|
||||||
os.chdir(__file__[:len(__file__)-__file__[len(__file__)::-1].index('/')])
|
try:
|
||||||
log("其他平台:更新执行位置,当前文件位置"+__file__)
|
os.chdir(__file__[:len(__file__)-__file__[len(__file__)::-1].index('/')])
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
log("其他平台:"+sys.platform+"更新执行位置,当前文件位置"+__file__)
|
||||||
print('完成!')
|
print('完成!')
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user