diff --git a/src/config.py b/src/config.py --- a/src/config.py +++ b/src/config.py @@ -1,11 +1,18 @@ +import os import logging +import json logging.basicConfig(format='%(asctime)s %(levelname)s: %(message)s', level=logging.DEBUG) +with open(os.path.join(os.path.dirname(__file__), "..", "config.json")) as f: + cfgFile=json.load(f) class misc: + file=cfgFile["misc"] version=(0,0,0) + defaultImage=file.get("defaultImage", "1.jpg") class gui: - showBigPoints=True - showGrid=False + file=cfgFile["gui"] + showBigPoints=file.get("showBigPoints", False) + showGrid=file.get("showGrid", True)