This commit is contained in:
dengrb1
2023-05-05 18:06:59 +08:00
committed by GitHub
parent 9f10488060
commit 84cf0deead
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ def is_connected():
return False return False
def open_exe(exe_name): def open_exe(exe_name):
ml = os.getcwd() ml = os.getcwd()
if os.path.exists(ml, f"{exe_name}.exe"): if os.path.exists(os.path.join(ml, f"{exe_name}.exe")):
os.system(f"start {exe_name}.exe") os.system(f"start {exe_name}.exe")
else: else:
pass pass

View File

@@ -11,7 +11,7 @@ def open_exe(exe_name):
if exe_name == None: if exe_name == None:
messagebox.showerror('程序错误:没有参数') messagebox.showerror('程序错误:没有参数')
pass pass
if os.path.exists(ml, f"{exe_name}.exe"): if os.path.exists(os.path.join(ml, f"{exe_name}.exe")):
os.system(f"start {exe_name}.exe") os.system(f"start {exe_name}.exe")
else: else:
messagebox.showerror('chatWEB', '重要文件丢失,请重新安装') messagebox.showerror('chatWEB', '重要文件丢失,请重新安装')