Skip to content

Commit

Permalink
fix: Fixed issue with not finding .X0 versions
Browse files Browse the repository at this point in the history
  • Loading branch information
StandingPadAnimations committed Feb 2, 2024
1 parent 80f116f commit 29edce3
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions bpy_addon_build/build_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 29edce3

Please sign in to comment.