diff options
Diffstat (limited to 'graphics/blender/blender-wrapper')
-rw-r--r-- | graphics/blender/blender-wrapper | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/graphics/blender/blender-wrapper b/graphics/blender/blender-wrapper index e30ce6591c479..6c39829440877 100644 --- a/graphics/blender/blender-wrapper +++ b/graphics/blender/blender-wrapper @@ -1,12 +1,9 @@ #!/bin/sh - # Wrapper to start blender - if [ ! -d $HOME/.blender ]; then cp -a /usr/share/blender/dot-blender $HOME/.blender sleep 1 fi - -cd /opt/blender-_VERSION_ -/opt/blender-_VERSION_/blender - +cd /opt/blender +PYTHONHOME="$(python -c "import sys; print ':'.join(sys.path[1:])")" \ + /opt/blender/blender |