Merge branch '1.3.5' of www.github.com:sanderland/katrain into 1.3.5
This commit is contained in:
commit
dd526a58a9
5 files changed
+3
-4
No files matched your search
Binary file not shown.
Executable
BIN
Binary file not shown.
+1
-1
@@ -16,7 +16,7 @@
|
|||||||
"anim_pv_time": 0.5,
|
"anim_pv_time": 0.5,
|
||||||
"debug_level": 0,
|
"debug_level": 0,
|
||||||
"lang": "en",
|
"lang": "en",
|
||||||
"version": "1.3.4"
|
"version": "1.3.5"
|
||||||
},
|
},
|
||||||
"timer": {
|
"timer": {
|
||||||
"byo_length": 30,
|
"byo_length": 30,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
VERSION = "1.3.4"
|
VERSION = "1.3.5"
|
||||||
HOMEPAGE = "https://github.com/sanderland/katrain"
|
HOMEPAGE = "https://github.com/sanderland/katrain"
|
||||||
CONFIG_MIN_VERSION = "1.3.3" # keep config files from this version
|
CONFIG_MIN_VERSION = "1.3.3" # keep config files from this version
|
||||||
|
|
||||||
|
|||||||
@@ -80,7 +80,6 @@ class KataGoEngine:
|
|||||||
def start(self):
|
def start(self):
|
||||||
try:
|
try:
|
||||||
self.katrain.log(f"Starting KataGo with {self.command}", OUTPUT_DEBUG)
|
self.katrain.log(f"Starting KataGo with {self.command}", OUTPUT_DEBUG)
|
||||||
|
|
||||||
self.katago_process = subprocess.Popen(
|
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=True
|
||||||
)
|
)
|
||||||
@@ -148,7 +147,7 @@ class KataGoEngine:
|
|||||||
def _analysis_read_thread(self):
|
def _analysis_read_thread(self):
|
||||||
while self.katago_process is not None:
|
while self.katago_process is not None:
|
||||||
try:
|
try:
|
||||||
line = self.katago_process.stdout.readline()
|
line = self.katago_process.stdout.readline().strip()
|
||||||
if self.katago_process and not line:
|
if self.katago_process and not line:
|
||||||
self.check_alive(exception_if_dead=True)
|
self.check_alive(exception_if_dead=True)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
|
|||||||
Reference in new issue
Block a user