#!/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()