From f7eb7f1e638d72fa7e638f889ff259e165a827c6 Mon Sep 17 00:00:00 2001 From: Sander Land Date: Sun, 6 Sep 2020 22:59:13 +0200 Subject: [PATCH] kill kata? --- katrain/core/engine.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/katrain/core/engine.py b/katrain/core/engine.py index e352561..1fcadc2 100644 --- a/katrain/core/engine.py +++ b/katrain/core/engine.py @@ -41,10 +41,12 @@ class KataGoEngine: self._lock = threading.Lock() self.analysis_thread = None self.stderr_thread = None + self.shell = False exe = config.get("katago", "").strip() if config.get("altcommand", ""): self.command = config["altcommand"] + self.shell = True else: if not exe: if platform == "win": @@ -81,7 +83,7 @@ class KataGoEngine: try: self.katrain.log(f"Starting KataGo with {self.command}", OUTPUT_DEBUG) self.katago_process = subprocess.Popen( - self.command, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True + self.command, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=self.shell ) except (FileNotFoundError, PermissionError, OSError) as e: self.katrain.log(