mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
Fix ModuleNotFoundError: No module named 'distutils' (#2723)
This commit is contained in:
parent
8d6b1e43bb
commit
d261d1e467
2 changed files with 3 additions and 4 deletions
|
@ -143,6 +143,7 @@ Sam Waechter <github.com/swektr>
|
||||||
Michael Eliachevitch <m.eliachevitch@posteo.de>
|
Michael Eliachevitch <m.eliachevitch@posteo.de>
|
||||||
Carlo Quick <https://github.com/CarloQuick>
|
Carlo Quick <https://github.com/CarloQuick>
|
||||||
Dominique Martinet <asmadeus@codewreck.org>
|
Dominique Martinet <asmadeus@codewreck.org>
|
||||||
|
Virinci
|
||||||
|
|
||||||
********************
|
********************
|
||||||
|
|
||||||
|
|
|
@ -36,10 +36,8 @@ import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
from distutils.spawn import ( # pylint: disable=import-error,no-name-in-module
|
|
||||||
find_executable,
|
|
||||||
)
|
|
||||||
from queue import Empty, Full, Queue
|
from queue import Empty, Full, Queue
|
||||||
|
from shutil import which
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
from anki.utils import is_win
|
from anki.utils import is_win
|
||||||
|
@ -78,7 +76,7 @@ class MPVBase:
|
||||||
based JSON IPC.
|
based JSON IPC.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
executable = find_executable("mpv")
|
executable = which("mpv")
|
||||||
popenEnv: Optional[dict[str, str]] = None
|
popenEnv: Optional[dict[str, str]] = None
|
||||||
|
|
||||||
default_argv = [
|
default_argv = [
|
||||||
|
|
Loading…
Reference in a new issue