Skip to content

Commit

Permalink
fix config path
Browse files Browse the repository at this point in the history
fix config path initialization by copying draft config if not present
  • Loading branch information
abearab committed Jan 4, 2025
1 parent 39263f1 commit 726a47a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CanDI/setup/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ def __init__(self, manager_path='auto', cfig_path='auto', verbose=False):

if cfig_path == 'auto':
if not os.path.exists(manager_path + "/data/config.ini"):
cfig_path = manager_path + "/data/config.draft.ini"
else:
cfig_path = manager_path + "/data/config.ini"
# copy config.draft.ini to config.ini
os.system(f"cp {manager_path}/data/config.draft.ini {manager_path}/data/config.ini")
cfig_path = manager_path + "/data/config.ini"

if verbose:
print(f"Manager Path: {manager_path}")
Expand Down

0 comments on commit 726a47a

Please sign in to comment.