将对于Windows的限制全部去除

This commit is contained in:
2021-11-21 11:38:01 +08:00
parent f86879a673
commit af3c7432ed
7 changed files with 58 additions and 35 deletions

View File

@ -37,12 +37,13 @@ __author__ = 'W-YI (金羿)'
import sys
if sys.platform != 'win32':
print("您当前的运行环境不符合要求。")
print(__author__+" 音·创 当前版本"+__version__)
print("按下回车退出程序")
input()
exit()
# if sys.platform != 'win32':
# print("您当前的运行环境不符合要求。")
# print(__author__+" 音·创 当前版本"+__version__)
# print("按下回车退出程序")
# input()
# exit()
@ -164,19 +165,6 @@ def __main__():
print("音·创 正在启动……")
'''
from nmcsup.vers import chkver
print("检验或下载支持库")
chkver()
'''
print("更新执行位置...")
os.chdir(__file__[:len(__file__)-__file__[len(__file__)::-1].index('\\')])
print('完成!')
print('载入日志功能...')
@ -185,6 +173,17 @@ def __main__():
print("更新执行位置...")
if sys.platform == 'win32':
os.chdir(__file__[:len(__file__)-__file__[len(__file__)::-1].index('\\')])
log("更新执行位置,当前文件位置"+__file__)
else:
os.chdir(__file__[:len(__file__)-__file__[len(__file__)::-1].index('/')])
log("其他平台:更新执行位置,当前文件位置"+__file__)
print('完成!')
# 读取文件