Explicit windows check before sigkill for mypy
This commit is contained in:
parent
b0d1e2626a
commit
1f43d1cc53
1 changed files with 3 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ import os
|
||||||
import shlex
|
import shlex
|
||||||
import signal
|
import signal
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import sys
|
||||||
import threading
|
import threading
|
||||||
from typing import IO, Optional
|
from typing import IO, Optional
|
||||||
|
|
||||||
|
|
@ -221,7 +222,8 @@ class PreviewStitcher(BaseStitcher):
|
||||||
except lt.exceptions.InvocationCancelledError as e:
|
except lt.exceptions.InvocationCancelledError as e:
|
||||||
with self._popen_lock:
|
with self._popen_lock:
|
||||||
if self._popen_obj is not None:
|
if self._popen_obj is not None:
|
||||||
if IS_WINDOWS:
|
# mypy requires the check to be here
|
||||||
|
if sys.platform == "win32":
|
||||||
# Windows has no SIGKILL
|
# Windows has no SIGKILL
|
||||||
self._popen_obj.kill()
|
self._popen_obj.kill()
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue