mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-13 10:08:28 +08:00
13 lines
424 B
Plaintext
13 lines
424 B
Plaintext
|
#!/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"installdll {''.join(argv)}")
|
||
|
com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE"))
|