diff --git a/source/modules/bl_api_manager.py b/source/modules/bl_api_manager.py index c73f19db..3a05d62d 100644 --- a/source/modules/bl_api_manager.py +++ b/source/modules/bl_api_manager.py @@ -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):