Skip to content

Commit

Permalink
[Profiles] use install instead of import
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume De Saint Martin authored and GuillaumeDSM committed Nov 6, 2022
1 parent 7b9286c commit 63ed8a3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions octobot_tentacles_manager/managers/profiles_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ def get_profile_folders(package_root) -> list:

def import_profile(profile_path, bot_install_root_folder) -> None:
profile_name = os.path.split(profile_path)[-1]
profiles.import_profile(profile_path,
name=profile_name,
bot_install_path=bot_install_root_folder,
replace_if_exists=True)
profiles.install_profile(profile_path,
profile_name,
bot_install_root_folder,
True,
False
)

0 comments on commit 63ed8a3

Please sign in to comment.