Fix killing Cutechess on Windows
Missing include throws ignored exceptions without executing TASKKILL
This commit is contained in:
1 parent
413264bf34
commit
ff23477eae
1 file changed
+2
-2
+2
-2
@@ -31,7 +31,7 @@ import zipfile
|
|||||||
import shutil
|
import shutil
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
|
|
||||||
from subprocess import PIPE, Popen
|
from subprocess import PIPE, Popen, call
|
||||||
|
|
||||||
from itertools import combinations_with_replacement
|
from itertools import combinations_with_replacement
|
||||||
|
|
||||||
@@ -301,7 +301,7 @@ def kill_cutechess(cutechess):
|
|||||||
try:
|
try:
|
||||||
|
|
||||||
if IS_WINDOWS:
|
if IS_WINDOWS:
|
||||||
subprocess.call(['taskkill', '/F', '/T', '/PID', str(cutechess.pid)])
|
call(['taskkill', '/F', '/T', '/PID', str(cutechess.pid)])
|
||||||
|
|
||||||
if IS_LINUX:
|
if IS_LINUX:
|
||||||
cutechess.kill()
|
cutechess.kill()
|
||||||
|
|||||||
Reference in new issue
Block a user