MCPcopy Create free account
hub / github.com/openai/shap-e / _blender_binary_path

Function _blender_binary_path

shap_e/rendering/blender/render.py:134–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132
133
134def _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 )

Callers 1

render_modelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected