Skip to content

Commit

Permalink
Check filepath of conffile for all cases. Print path to conffile for …
Browse files Browse the repository at this point in the history
…all cases.
  • Loading branch information
jmohdyusof committed Jun 30, 2023
1 parent e1e8192 commit 0d215ec
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions candle/parsing_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,14 +779,16 @@ def finalize_parameters(bmk):
conffile = os.path.join(os.environ["CANDLE_DATA_DIR"], conffile_txt)
else:
conffile = os.path.join(bmk.file_path, conffile_txt)
if not os.path.isfile(conffile):
raise Exception(
"ERROR ! Specified configuration file "
+ conffile
+ " not found ... Exiting"
)
# check conffile exists
if not os.path.isfile(conffile):
raise Exception(
"ERROR ! Specified configuration file "
+ conffile
+ " not found ... Exiting"
)
else:
print("Configuration file: ", conffile)

# print("Configuration file: ", conffile)
fileParameters = bmk.read_config_file(
conffile
) # aux.config_file)#args.config_file)
Expand Down

0 comments on commit 0d215ec

Please sign in to comment.