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: file=cfgFile["gui"] showBigPoints=file.get("showBigPoints", False) showGrid=file.get("showGrid", True)