初步实现模板

This commit is contained in:
2022-09-29 20:08:37 +08:00
parent 6276dfb0f9
commit 3215713f2d
9 changed files with 131 additions and 0 deletions

13
AutoShell/command/installmono Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env python3
# 加入路径
import os
import sys
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
sys.path.append(f"{programPath}/../../")
import ConfigLanguareRunner
# 符号转移
argv = []
for i in sys.argv[1:]:
argv = i.replace(" ", "\\ ")
com = ConfigLanguareRunner.Command(f"installmono {''.join(argv)}")
com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE"))