This commit is contained in:
dengrb1
2023-04-30 18:48:40 +08:00
committed by GitHub
parent b94c0105e7
commit 9e30b814f9

View File

@@ -48,11 +48,12 @@ def quit_exe():
root.destroy() root.destroy()
def file_jc(): def file_jc():
if os.path.exists(os.path.join(CURRENT_DIR, "if_file.exe")): if os.path.exists(os.path.join(CURRENT_DIR, "jc.exe")):
os.system('start if_file.exe') os.system('start jc.exe')
else: else:
messagebox.showerror('sittings', '系统文件丢失,程序出现错误!') messagebox.showerror('sittings', '系统文件丢失,程序出现错误!')
sleep(1) sleep(0.5)
messagebox.showerror('error','程序出现问题,已经崩溃,错误代码:jc_not_system_file')
quit_exe() quit_exe()
pass pass