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 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 # pylint: disable=unused-argument

View File

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

View File

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

View File

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

View File

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