relative import

This commit is contained in:
jonathan 2021-05-31 18:02:37 +02:00
parent e962469858
commit 722ad8c650
5 changed files with 17 additions and 17 deletions

View File

@ -2,7 +2,7 @@
custom audio filter, which get loaded automatically
"""
from ffplayout.utils import get_float, stdin_args
from ..utils import get_float, stdin_args
# pylint: disable=unused-argument

View File

@ -5,7 +5,7 @@ custom video filter, which get loaded automatically
import os
import re
from ffplayout.utils import lower_third
from ..utils import lower_third
def filter_link(node):

View File

@ -23,11 +23,11 @@ import os
from subprocess import PIPE, Popen
from threading import Thread
from ffplayout.folder import GetSourceFromFolder, MediaStore, MediaWatcher
from ffplayout.playlist import GetSourceFromPlaylist
from ffplayout.utils import (ff_proc, ffmpeg_stderr_reader, log, lower_third,
messenger, playlist, pre, pre_audio_codec,
stdin_args, terminate_processes)
from ..folder import GetSourceFromFolder, MediaStore, MediaWatcher
from ..playlist import GetSourceFromPlaylist
from ..utils import (ff_proc, ffmpeg_stderr_reader, log, lower_third,
messenger, playlist, pre, pre_audio_codec, stdin_args,
terminate_processes)
_WINDOWS = os.name == 'nt'
COPY_BUFSIZE = 1024 * 1024 if _WINDOWS else 65424

View File

@ -25,10 +25,10 @@ from glob import iglob
from subprocess import PIPE, Popen
from threading import Thread
from ffplayout.folder import GetSourceFromFolder, MediaStore, MediaWatcher
from ffplayout.playlist import GetSourceFromPlaylist
from ffplayout.utils import (ff_proc, ffmpeg_stderr_reader, get_date, log,
messenger, playlist, playout, stdin_args, sync_op,
from ..folder import GetSourceFromFolder, MediaStore, MediaWatcher
from ..playlist import GetSourceFromPlaylist
from ..utils import (ff_proc, ffmpeg_stderr_reader, get_date, log, messenger,
playlist, playout, stdin_args, sync_op,
terminate_processes)

View File

@ -23,11 +23,11 @@ import os
from subprocess import PIPE, Popen
from threading import Thread
from ffplayout.folder import GetSourceFromFolder, MediaStore, MediaWatcher
from ffplayout.playlist import GetSourceFromPlaylist
from ffplayout.utils import (ff_proc, ffmpeg_stderr_reader, get_date, log,
lower_third, messenger, playlist, playout, pre,
pre_audio_codec, stdin_args, terminate_processes)
from ..folder import GetSourceFromFolder, MediaStore, MediaWatcher
from ..playlist import GetSourceFromPlaylist
from ..utils import (ff_proc, ffmpeg_stderr_reader, get_date, log, lower_third,
messenger, playlist, playout, pre, pre_audio_codec,
stdin_args, terminate_processes)
_WINDOWS = os.name == 'nt'
COPY_BUFSIZE = 1024 * 1024 if _WINDOWS else 65424