forked from antekov/mt5-manager
7 lines
431 B
Text
def launch(self, folder, config=None):
| |||
args = [self.control.instance_path(folder), '/portable']
| |||
if config:
| |||
# Кавычки окружают значение ключа, а не весь аргумент.
| |||
command = subprocess.list2cmdline(args) + f' /config:"{config}"'
| |||
return subprocess.Popen(command, cwd=str(Path(args[0]).parent))
| |||
return subprocess.Popen(args, cwd=str(Path(args[0]).parent))
|