Fix ModuleNotFoundError: No module named 'distutils' (#2723)

This commit is contained in:
virinci 2023-10-11 09:42:18 +05:30 committed by GitHub
parent 8d6b1e43bb
commit d261d1e467
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

@ -143,6 +143,7 @@ Sam Waechter <github.com/swektr>
Michael Eliachevitch <m.eliachevitch@posteo.de>
Carlo Quick <https://github.com/CarloQuick>
Dominique Martinet <asmadeus@codewreck.org>
Virinci
********************

View file

@ -36,10 +36,8 @@ import sys
import tempfile
import threading
import time
from distutils.spawn import ( # pylint: disable=import-error,no-name-in-module
find_executable,
)
from queue import Empty, Full, Queue
from shutil import which
from typing import Optional
from anki.utils import is_win
@ -78,7 +76,7 @@ class MPVBase:
based JSON IPC.
"""
executable = find_executable("mpv")
executable = which("mpv")
popenEnv: Optional[dict[str, str]] = None
default_argv = [