diff --git a/modules/base/config.py b/modules/base/config.py index aec8eba3ea68338a2135a0606800d287747e1c6e..af908206a4e0ac22881576e89bdece4edc60b292 100644 --- a/modules/base/config.py +++ b/modules/base/config.py @@ -45,15 +45,19 @@ class AuraConfig: Args: ini_path(String): The path to the configuration file `engine.ini` """ + self.logger = logging.getLogger("AuraEngine") config_file = Path(ini_path) if not config_file.is_file(): ini_path = "%s/configuration/engine.ini" % Path(__file__).parent.parent.parent.absolute() self.ini_path = ini_path - self.set("config_dir", os.path.dirname(ini_path)) - self.logger = logging.getLogger("AuraEngine") self.load_config() + # Defaults + self.set("config_dir", os.path.dirname(ini_path)) + self.set("install_dir", os.path.realpath(__file__ + "../../../..")) + self.set("use_test_data", False) # TODO Still needed? + def set(self, key, value): @@ -133,9 +137,6 @@ class AuraConfig: v = config_parser.get(section, key).replace('"', '').strip() self.set(key, v) - # Custom overrides and defaults - self.set("install_dir", os.path.realpath(__file__ + "../../../..")) - self.set("use_test_data", False)