diff --git a/main.py b/main.py index f408667..ef2bedf 100644 --- a/main.py +++ b/main.py @@ -21,6 +21,9 @@ class Config: if config_path.exists(): with config_path.open("rb") as f: config = tomllib.load(f) + elif "CONFIG_PATH" in os.environ: + print(f"Configuration file {config_path} does not exist; create it or change the CONFIG_PATH environment variable to another path") + exit(1) else: config = {}