play-daemon-threaded/play-daemon.py
Stefan Nenzén 30361abdd9 VisibilityHandler (#3)
Create a VisibilityHandler

Co-authored-by: nenzen <stefan@nenzen.com>
Reviewed-on: #3
Reviewed-by: erth9960 <thuning@dsv.su.se>
Co-authored-by: Stefan Nenzén <nenzen@dsv.su.se>
Co-committed-by: Stefan Nenzén <nenzen@dsv.su.se>
2024-03-27 14:54:33 +01:00

27 lines
444 B
Python
Executable File

#!/usr/bin/env python3
import signal
import sys
from configparser import ConfigParser
from os import path
from pipeline import Pipeline
conffile = 'config.ini'
if not path.exists(conffile):
print(f"{conffile} missing, exiting")
sys.exit(1)
config = ConfigParser(empty_lines_in_values=False)
config.read(conffile)
pipeline = Pipeline(config)
pipeline.start()
try:
signal.pause()
except KeyboardInterrupt:
pipeline.stop()