aboutsummaryrefslogtreecommitdiff
path: root/graphics/blender/blender-softwaregl-wrapper
blob: 844bc5374b57f8c25b7cce229204738e8fcd7126 (plain)
1
2
3
4
5
6
7
8
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
PYTHONHOME="$(python -c "import sys; print ':'.join(sys.path[1:])")" \
  /opt/blender/blender-softwaregl "$@"