publish eve_orehold_watcher.py

This commit is contained in:
brockdarnold 2026-06-15 02:41:24 +00:00
parent 1d132ed2a0
commit 580eb90865

View file

@ -68,7 +68,9 @@ def load_config():
if not os.path.exists(CONFIG_PATH):
sys.exit(f"No config.ini found. Copy config.ini.example -> config.ini "
f"and edit it.\n(looked in {CONFIG_PATH})")
cp = configparser.ConfigParser()
# inline_comment_prefixes: strip ' ; comment' after values, else getint() crashes
# on lines like "poll_secs = 10 ; how often" (config.ini.example has these).
cp = configparser.ConfigParser(inline_comment_prefixes=(";",))
cp.read(CONFIG_PATH, encoding="utf-8-sig") # tolerate a UTF-8 BOM
return cp