修复BUG:run无法异常退出,主程序检测目录错误

This commit is contained in:
DLmaster
2024-03-11 10:27:47 +08:00
parent 7b789c71ca
commit 3bcfe6b1d0
6 changed files with 5 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ while True:
print(colored(linex,'light_green'))
else:
print(colored("暂无",'light_green'))
if (curtime in timeset) and not os.path.exists("running"):
if (curtime in timeset) and not os.path.exists("state/running"):
with open("state/BEGIN","w",encoding="utf-8") as f:
print("BEGIN",file=f)
maa=subprocess.Popen(["run.exe"])