pip helper

This commit is contained in:
dengrb1
2023-04-29 15:40:38 +08:00
committed by GitHub
parent 0411c2abb3
commit b61adbf5ef

View File

@@ -5,26 +5,22 @@ import os
root = Tk() root = Tk()
ml = os.getcwd() CURRENT_DIR = os.getcwd()
System = platform.system() System = platform.system()
file_error = '文件丢失,请重新安装' file_error = '文件丢失,请重新安装'
def windows_run(): def windows_run():
if os.path.exists("{ml}\system_cz.exe"): if os.path.exists(os.path.join(CURRENT_DIR, "system_cz.exe")):
os.system('start {ml}\windows\system_cz.exe') os.system("start system_cz.exe")
else: else:
messagebox.showerror('system', '文件丢失,请重新安装') messagebox.showerror('update', '重要文件丢失')
pass
pass
def Not_windows_run(): def Not_windows_run():
if os.path.exists('{ml}\system_command.exe'): if os.path.exists(os.path.join(CURRENT_DIR, "system_command.py")):
os.system('python {ml}/Not/system_command.py') os.system("python system_command.py")
else: else:
messagebox.showerror('system', file_error) messagebox.showerror('update', '重要文件丢失')
pass
pass
def system_jc(): def system_jc():
if System != 'Windows': if System != 'Windows':