aboutsummaryrefslogtreecommitdiff
path: root/graphics/blender/blenderplayer-wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/blender/blenderplayer-wrapper')
-rw-r--r--graphics/blender/blenderplayer-wrapper9
1 files changed, 3 insertions, 6 deletions
diff --git a/graphics/blender/blenderplayer-wrapper b/graphics/blender/blenderplayer-wrapper
index f3ccab3ff285f..aec8daa006bd2 100644
--- a/graphics/blender/blenderplayer-wrapper
+++ b/graphics/blender/blenderplayer-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_/blenderplayer
-
+cd /opt/blender
+PYTHONHOME="$(python -c "import sys; print ':'.join(sys.path[1:])")" \
+ /opt/blender/blenderplayer