()
| 132 | |
| 133 | |
| 134 | def _blender_binary_path() -> str: |
| 135 | path = os.getenv("BLENDER_PATH", None) |
| 136 | if path is not None: |
| 137 | return path |
| 138 | |
| 139 | if os.path.exists("/Applications/Blender.app/Contents/MacOS/Blender"): |
| 140 | return "/Applications/Blender.app/Contents/MacOS/Blender" |
| 141 | |
| 142 | raise EnvironmentError( |
| 143 | "To render 3D models, install Blender version 3.3.1 or higher and " |
| 144 | "set the environment variable `BLENDER_PATH` to the path of the Blender executable." |
| 145 | ) |