From 29edce3690e20c11487d80654e35d48a71ab0eff Mon Sep 17 00:00:00 2001 From: StandingPad Animations Date: Fri, 2 Feb 2024 09:27:52 -0600 Subject: [PATCH] fix: Fixed issue with not finding .X0 versions --- bpy_addon_build/build_context.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/bpy_addon_build/build_context.py b/bpy_addon_build/build_context.py index fc936c5..8172952 100644 --- a/bpy_addon_build/build_context.py +++ b/bpy_addon_build/build_context.py @@ -129,14 +129,13 @@ def install(self, build_path: Path) -> None: path = Path(p.format(str(format(v, ".2f")))).expanduser() if not path.exists(): continue - else: - addon_path = path.joinpath(Path(self.config.build_name)) - if addon_path.exists(): - shutil.rmtree(addon_path) - shutil.unpack_archive(build_path, path) - if not self.cli.supress_messages: - console.print(f"Installed to {str(path)}", style="green") - installed = True + addon_path = path.joinpath(Path(self.config.build_name)) + if addon_path.exists(): + shutil.rmtree(addon_path) + shutil.unpack_archive(build_path, path) + if not self.cli.supress_messages: + console.print(f"Installed to {str(path)}", style="green") + installed = True if not installed and not self.cli.supress_messages: console.print(f"Cound not find {v}", style="yellow")