chore(playout): use 'entrypoint' generic module name
This commit is contained in:
parent
bd8b17a2cd
commit
58ad40f997
|
@ -43,7 +43,7 @@ def generate_liquidsoap_config(ss, log_filepath: Optional[Path]):
|
||||||
fh.close()
|
fh.close()
|
||||||
|
|
||||||
|
|
||||||
def run(log_filepath: Optional[Path]):
|
def generate_entrypoint(log_filepath: Optional[Path]):
|
||||||
attempts = 0
|
attempts = 0
|
||||||
max_attempts = 10
|
max_attempts = 10
|
||||||
successful = False
|
successful = False
|
|
@ -11,7 +11,7 @@ from libretime_shared.config import DEFAULT_ENV_PREFIX
|
||||||
from libretime_shared.logging import level_from_name, setup_logger
|
from libretime_shared.logging import level_from_name, setup_logger
|
||||||
from loguru import 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})
|
@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)
|
log_level = level_from_name(log_level)
|
||||||
setup_logger(log_level, log_filepath)
|
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
|
# check liquidsoap version so we can run a scripts matching the liquidsoap minor version
|
||||||
liquidsoap_version = subprocess.check_output(
|
liquidsoap_version = subprocess.check_output(
|
||||||
"liquidsoap 'print(liquidsoap.version) shutdown()'",
|
"liquidsoap 'print(liquidsoap.version) shutdown()'",
|
||||||
|
|
Loading…
Reference in New Issue