pip helper
This commit is contained in:
18
client.pyw
18
client.pyw
@@ -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':
|
||||||
|
|||||||
Reference in New Issue
Block a user