Skip to content

Commit

Permalink
Fix lint errors because of STARTF_USESHOWWINDOW
Browse files Browse the repository at this point in the history
  • Loading branch information
abdnh committed Aug 20, 2023
1 parent 61ae2fa commit 1bbc775
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/mpv2anki.py
Original file line number Diff line number Diff line change
Expand Up @@ -953,8 +953,12 @@ def subprocess_video(
# anki.utils.call() with bundle libs if mpv is packaged
def call(self, argv: List[str]) -> None:
if is_win:
si = subprocess.STARTUPINFO()
si.dwFlags |= subprocess.STARTF_USESHOWWINDOW
si = subprocess.STARTUPINFO() # type: ignore[attr-defined, unused-ignore]
try:
si.dwFlags |= subprocess.STARTF_USESHOWWINDOW # type: ignore[attr-defined, unused-ignore]
except:
# pylint: disable=no-member
si.dwFlags |= subprocess._subprocess.STARTF_USESHOWWINDOW # type: ignore[attr-defined, unused-ignore]
else:
si = None

Expand Down

0 comments on commit 1bbc775

Please sign in to comment.