summaryrefslogtreecommitdiff
path: root/start.sh
diff options
context:
space:
mode:
Diffstat (limited to 'start.sh')
-rwxr-xr-xstart.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/start.sh b/start.sh
new file mode 100755
index 0000000..c8c83c5
--- /dev/null
+++ b/start.sh
@@ -0,0 +1,10 @@
+# file to be put where the "blender" binary file is located
+# this file will basically call blender specifying the
+# external python install that is expected to be ran with
+# path must be the python's interpreter path
+
+PYTHON_INTERPRETER_PATH=/YOUR/ABSOLUTE/PYTHON/INTERPRETER/PATH
+echo $PYTHON_INTERPRETER_PATH
+BLENDER_SYSTEM_PYTHON=$($PYTHON_INTERPRETER_PATH -c 'import sys; print(sys.exec_prefix)')
+echo $BLENDER_SYSTEM_PYTHON
+BLENDER_SYSTEM_PYTHON=$BLENDER_SYSTEM_PYTHON ./blender -- "$PYTHON_INTERPRETER_PATH"