From 741a41c95aad8b3d278f8621100dd13f758b8a2c Mon Sep 17 00:00:00 2001 From: Sander Land Date: Fri, 8 May 2020 22:04:24 +0200 Subject: [PATCH] mac fix: 'win' in 'darwin' --- core/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/engine.py b/core/engine.py index 4579f77..c662207 100644 --- a/core/engine.py +++ b/core/engine.py @@ -28,7 +28,7 @@ class KataGoEngine: def __init__(self, katrain, config): self.katrain = katrain self.command = f"{config['katago']} analysis -model {config['model']} -config {config['config']} -analysis-threads {config['threads']}" - if "win" not in sys.platform: + if not sys.platform.startswith("win"): self.command = shlex.split(self.command) self.queries = {} # outstanding query id -> start time and callback self.config = config