diff --git a/exp/config.py b/exp/exp_config.py copy from exp/config.py copy to exp/exp_config.py --- a/exp/config.py +++ b/exp/exp_config.py @@ -1,8 +1,17 @@ import os +import json +import logging as log +log.basicConfig(level=log.INFO,format="%(asctime)s %(levelname)s: %(message)s") +thisDir=os.path.dirname(__file__) + +with open(os.path.join(thisDir,"config.json")) as f: + cfg=json.load(f) + INTERACTIVE=False imgDir="/tmp/oneEye" +sansaModel=cfg.get("sansaModel") i=1 if not os.path.exists(imgDir):