mirror of
https://github.com/ankitects/anki.git
synced 2026-01-14 06:23:57 -05:00
Fix ModuleNotFoundError: No module named 'distutils' (#2723)
This commit is contained in:
parent
8b9a80c26c
commit
8d0d28e3a2
2 changed files with 3 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
********************
|
||||
|
||||
|
|
|
|||
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue