void-packages/srcpkgs/anki/patches/fix_distutils_not_found.patch

9 lines
286 B
Diff

--- a/anki/mpv.py
+++ b/anki/mpv.py
@@ -39 +39 @@ import inspect
-from distutils.spawn import find_executable # pylint: disable=import-error,no-name-in-module
+from shutil import which
@@ -68 +68 @@ class MPVBase:
- executable = find_executable("mpv")
+ executable = which("mpv")