Skip to content

Commit

Permalink
Merge pull request #972 from DLR-RM/iss970_windows_custom_blender
Browse files Browse the repository at this point in the history
fix(windows): Fixes usage of custom blender path on windows
  • Loading branch information
cornerfarmer authored Sep 20, 2023
2 parents 51e5d25 + e174dd2 commit 3b4c4e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions blenderproc/python/utility/InstallUtility.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def make_sure_blender_is_installed(custom_blender_path: str, blender_install_pat
elif platform == "win32":
blender_version += "-windows-x64"
blender_install_path = os.path.join(blender_install_path, blender_version)
blender_path = blender_install_path
# After unpacking there is another subfolder named blender_version
blender_path = os.path.join(blender_install_path, blender_version)
else:
raise RuntimeError(f"This system is not supported yet: {platform}")

Expand Down Expand Up @@ -218,7 +219,7 @@ def __call__(self, block_num, block_size, total_size):
elif platform == "darwin":
blender_run_path = os.path.join(blender_path, "Contents", "MacOS", "Blender")
elif platform == "win32":
blender_run_path = os.path.join(blender_install_path, blender_version, "blender")
blender_run_path = os.path.join(blender_path, "blender")
else:
raise RuntimeError(f"This system is not supported yet: {platform}")

Expand Down

0 comments on commit 3b4c4e4

Please sign in to comment.