2023/8/27 update

This commit is contained in:
dengrb1
2023-08-27 11:49:10 +08:00
committed by GitHub
parent ec4817a226
commit b7c10efa76
2 changed files with 2 additions and 59 deletions

View File

@@ -3,6 +3,7 @@ import os
import urllib.request
import webbrowser
from time import sleep, strftime
import subprocess
ml = os.getcwd()
@@ -12,7 +13,7 @@ ERROR_MSG = '错误:'
def open_exe(exe_name):
if os.path.exists(os.path.join(ml, f"{exe_name}.exe")):
os.system(f"start {exe_name}.exe")
subprocess.Popen(f"{exe_name}.exe", shell=True)
else:
print(file_error)
sleep(1)