chore(playout): use 'entrypoint' generic module name

This commit is contained in:
jo 2022-07-16 23:11:20 +02:00 committed by Kyle Robbertze
parent bd8b17a2cd
commit 58ad40f997
2 changed files with 4 additions and 3 deletions

View File

@ -43,7 +43,7 @@ def generate_liquidsoap_config(ss, log_filepath: Optional[Path]):
fh.close()
def run(log_filepath: Optional[Path]):
def generate_entrypoint(log_filepath: Optional[Path]):
attempts = 0
max_attempts = 10
successful = False

View File

@ -11,7 +11,7 @@ from libretime_shared.config import DEFAULT_ENV_PREFIX
from libretime_shared.logging import level_from_name, setup_logger
from loguru import logger
from . import generate_liquidsoap_cfg
from .entrypoint import generate_entrypoint
@click.command(context_settings={"auto_envvar_prefix": DEFAULT_ENV_PREFIX})
@ -23,7 +23,8 @@ def cli(log_level: int, log_filepath: Optional[Path]):
log_level = level_from_name(log_level)
setup_logger(log_level, log_filepath)
generate_liquidsoap_cfg.run(log_filepath)
generate_entrypoint(log_filepath)
# check liquidsoap version so we can run a scripts matching the liquidsoap minor version
liquidsoap_version = subprocess.check_output(
"liquidsoap 'print(liquidsoap.version) shutdown()'",