revert shlex, rm bs52, add linux-cpu

This commit is contained in:
Sander Land committed 2020-08-18 17:07:54 +02:00
1 parent 93aacc381f
commit be3623d060
5 files changed
+5 -6

No files matched your search

+3 -4
View File
@@ -1,7 +1,7 @@
import copy
import json
import os
import shlex, subprocess
import subprocess
import threading
import time
import traceback
@@ -82,9 +82,8 @@ class KataGoEngine:
def start(self):
try:
self.katrain.log(f"Starting KataGo with {self.command}", OUTPUT_DEBUG)
self.katago_process = subprocess.Popen(
shlex.split(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=True
)
except (FileNotFoundError, PermissionError, OSError) as e:
self.katrain.log(
@@ -150,7 +149,7 @@ class KataGoEngine:
def _analysis_read_thread(self):
while self.katago_process is not None:
try:
line = self.katago_process.stdout.readline()
line = self.katago_process.stdout.readline().strip()
if self.katago_process and not line:
self.check_alive(exception_if_dead=True)
except OSError as e: