Skip to content

Commit

Permalink
fix(windows): Fixes usage of custom blender path on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cornerfarmer committed Aug 31, 2023
1 parent c700811 commit e174dd2
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 e174dd2

Please sign in to comment.