chatWEB
This commit is contained in:
2
wifi.py
2
wifi.py
@@ -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
|
||||||
|
|||||||
@@ -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', '重要文件丢失,请重新安装')
|
||||||
|
|||||||
Reference in New Issue
Block a user