From 268c46f981a6559d78ebad964fe7c84ddd4da768 Mon Sep 17 00:00:00 2001 From: stilobique Date: Thu, 19 May 2022 15:54:14 +0200 Subject: [PATCH] Fix preset installation --- tests/utils/blender_addon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/utils/blender_addon.py b/tests/utils/blender_addon.py index 52033fd..1b004b0 100644 --- a/tests/utils/blender_addon.py +++ b/tests/utils/blender_addon.py @@ -6,6 +6,7 @@ import shutil def b3d_install_addon(): + """Function to install addon with the blender locally set""" env_name = 'FOLDER_TEST' dependency = pathlib.Path(os.environ[env_name], "tests", "dependency.json") with open(dependency) as f: @@ -45,7 +46,7 @@ def b3d_install_preset(): path_locally = pathlib.Path(os.environ.get(env_name), "presets") if path_locally.exists(): - shutil.copytree(path_locally, path_preset.joinpath("moderlab")) + shutil.copytree(path_locally, path_preset.joinpath("moderlab", "props")) except KeyError: print(f'Env. "{env_name}" doesn\'t exist')