summaryrefslogtreecommitdiff
path: root/graphics/blender/blender-softwaregl-wrapper
diff options
context:
space:
mode:
authorRobby Workman <rw@rlworkman.net>2010-05-13 00:27:43 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-13 00:27:43 +0200
commit77c071fe7cc5a941e57ed3098877805a9858c15f (patch)
treebc9ebc32ba91523b438c6440d867a669b8906036 /graphics/blender/blender-softwaregl-wrapper
parent85fb71d624b5da9f7e71886ab0091f9e7930d6fa (diff)
downloadslackbuilds-77c071fe7cc5a941e57ed3098877805a9858c15f.tar.gz
graphics/blender: Updated for version 2.49a
Diffstat (limited to 'graphics/blender/blender-softwaregl-wrapper')
-rw-r--r--graphics/blender/blender-softwaregl-wrapper9
1 files changed, 9 insertions, 0 deletions
diff --git a/graphics/blender/blender-softwaregl-wrapper b/graphics/blender/blender-softwaregl-wrapper
new file mode 100644
index 0000000000..b337a60cea
--- /dev/null
+++ b/graphics/blender/blender-softwaregl-wrapper
@@ -0,0 +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
+PYTHONHOME="$(python -c "import sys; print ':'.join(sys.path[1:])")" \
+ /opt/blender/blender-softwaregl