from configparser import ConfigParser import os from pathlib import Path config_path = ( os.environ["JIMBRELLA_CONFIG"] if "JIMBRELLA_CONFIG" in os.environ else "/opt/jimbrella/config.ini" ) config = ConfigParser() config.read(config_path)