Skip to content

Commit

Permalink
mend
Browse files Browse the repository at this point in the history
  • Loading branch information
abearab committed Jun 26, 2024
1 parent ec13d96 commit 6d08b26
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions CanDI/candi/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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()

Expand Down

0 comments on commit 6d08b26

Please sign in to comment.