Fix killing Cutechess on Windows

Missing include throws ignored exceptions without executing TASKKILL
This commit is contained in:
Andrew Grant committed 2021-06-11 12:57:01 -04:00
1 parent 413264bf34
commit ff23477eae
1 file changed
+2 -2
+2 -2
View File
@@ -31,7 +31,7 @@ import zipfile
import shutil
import multiprocessing
from subprocess import PIPE, Popen
from subprocess import PIPE, Popen, call
from itertools import combinations_with_replacement
@@ -301,7 +301,7 @@ def kill_cutechess(cutechess):
try:
if IS_WINDOWS:
subprocess.call(['taskkill', '/F', '/T', '/PID', str(cutechess.pid)])
call(['taskkill', '/F', '/T', '/PID', str(cutechess.pid)])
if IS_LINUX:
cutechess.kill()