Skip to content

Commit 29edce3

Browse files
fix: Fixed issue with not finding .X0 versions
1 parent 80f116f commit 29edce3

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

bpy_addon_build/build_context.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,13 @@ def install(self, build_path: Path) -> None:
129129
path = Path(p.format(str(format(v, ".2f")))).expanduser()
130130
if not path.exists():
131131
continue
132-
else:
133-
addon_path = path.joinpath(Path(self.config.build_name))
134-
if addon_path.exists():
135-
shutil.rmtree(addon_path)
136-
shutil.unpack_archive(build_path, path)
137-
if not self.cli.supress_messages:
138-
console.print(f"Installed to {str(path)}", style="green")
139-
installed = True
132+
addon_path = path.joinpath(Path(self.config.build_name))
133+
if addon_path.exists():
134+
shutil.rmtree(addon_path)
135+
shutil.unpack_archive(build_path, path)
136+
if not self.cli.supress_messages:
137+
console.print(f"Installed to {str(path)}", style="green")
138+
installed = True
140139
if not installed and not self.cli.supress_messages:
141140
console.print(f"Cound not find {v}", style="yellow")
142141

0 commit comments

Comments
 (0)