Skip to content

Commit 8723efe

Browse files
author
arch
committed
remove unused mpv input
1 parent 358d038 commit 8723efe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

funscript_editor/ui/funscript_editor_window.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import os
66
import copy
77
import locale
8-
import mpv
98
import threading
109
import logging
1110
import shutil

funscript_editor/ui/video_player.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import time
66
import os
77
import logging
8-
import mpv # pip install python-mpv
98

109
from typing import Callable
1110
from PIL import Image, ImageDraw, ImageFont
@@ -37,6 +36,8 @@ def __init__(self,
3736
locale.setlocale(locale.LC_NUMERIC, 'C')
3837
self.video_pane.setAttribute(QtCore.Qt.WA_DontCreateNativeAncestors)
3938
self.video_pane.setAttribute(QtCore.Qt.WA_NativeWindow)
39+
if os.getcwd() not in os.environ['PATH']: os.environ['PATH'] += os.getcwd() + os.sep
40+
import mpv # pip install python-mpv
4041
self.player = mpv.MPV(wid=str(int(self.video_pane.winId())),
4142
log_handler=self.__log_handler,
4243
input_default_bindings=True,

0 commit comments

Comments
 (0)