quote command

This commit is contained in:
Sander Land committed 2020-07-14 19:38:38 +02:00
1 parent 6d4497e15e
commit 04d9b99d65
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -42,10 +42,12 @@ class KataGoEngine:
self.analysis_thread = None
self.stderr_thread = None
exe = config.get("katago", "").strip()
if override_command:
self.command = override_command
elif exe.startswith('"') and exe.endswith('"'):
self.command = exe.strip('"')
else:
exe = config["katago"].strip()
if not exe:
if platform == "win":
exe = "katrain/KataGo/katago.exe"