slackbuilds_ponce/graphics/blender/blenderplayer-wrapper
2010-05-13 00:27:43 +02:00

9 lines
253 B
Bash

#!/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
PYTHONHOME="$(python -c "import sys; print ':'.join(sys.path[1:])")" \
/opt/blender/blenderplayer