Skip to content

Commit

Permalink
switch unfrozen internal_bl_api_path and internal_stable_build_paths …
Browse files Browse the repository at this point in the history
…to Path

This resolves an error occuring on line 43, where internal_stable_build_path was either not defined or was not a Path, which would cancel build scraping before it could begin.
  • Loading branch information
zeptofine committed Oct 8, 2024
1 parent d97b59b commit 4a3d4f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/modules/bl_api_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
stable_build_path = config_path / "stable_builds.json"

if getattr(sys, "frozen", False):
internal_bl_api_path = sys._MEIPASS + "/files/blender_launcher_api.json" # noqa: SLF001
internal_stable_build_path = sys._MEIPASS + f"/files/stable_builds_api_{get_platform().lower()}.json" # noqa: SLF001
internal_bl_api_path = Path(sys._MEIPASS, "/files/blender_launcher_api.json") # noqa: SLF001
internal_stable_build_path = Path(sys._MEIPASS, f"/files/stable_builds_api_{get_platform().lower()}.json") # noqa: SLF001
else:
internal_bl_api_path = Path("source/resources/api/blender_launcher_api.json").resolve().as_posix()
internal_bl_api_path = Path(f"source/resources/api/stable_builds_api_{get_platform().lower()}.json").resolve().as_posix()
internal_bl_api_path = Path("source/resources/api/blender_launcher_api.json").resolve()
internal_stable_build_path = Path(f"source/resources/api/stable_builds_api_{get_platform().lower()}.json").resolve()


def update_local_api_files(data):
Expand Down

0 comments on commit 4a3d4f6

Please sign in to comment.