From 6d08b269daea2154a0d4b57ac4c8dce7ffb10a5a Mon Sep 17 00:00:00 2001 From: abearab Date: Wed, 26 Jun 2024 03:46:16 -0700 Subject: [PATCH] mend --- CanDI/candi/data.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CanDI/candi/data.py b/CanDI/candi/data.py index 2b38455..c7fed5e 100644 --- a/CanDI/candi/data.py +++ b/CanDI/candi/data.py @@ -18,7 +18,11 @@ def __init__(self, config_path='auto', verbose=False): if config_path == 'auto': self._file_path = Path(os.path.dirname(os.path.realpath(__file__))).parent.absolute() / 'setup' - config_path = self._file_path / 'data/config.ini' + if os.path.exists(self._file_path / 'data/config.ini'): + config_path = self._file_path / 'data/config.ini' + else: + config_path = self._file_path / 'data/config.draft.ini' + elif os.path.exists(config_path) == False: raise FileNotFoundError("Config file not found at {}".format(config_path)) elif os.path.exists(config_path) == True: @@ -28,8 +32,8 @@ def __init__(self, config_path='auto', verbose=False): parser.read(config_path) self._parser = parser - # self._verify_install() - # self._init_sources() + self._verify_install() + self._init_sources() self._init_depmap_paths() self._init_index_tables()