From 4dc0603587ba4505c1525569fe500bcc453b1e6e Mon Sep 17 00:00:00 2001 From: Laurent Clouet Date: Mon, 16 Jul 2018 18:21:11 +0200 Subject: [PATCH] Don't use system python but blender's --- src/com/sheepit/client/Job.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/sheepit/client/Job.java b/src/com/sheepit/client/Job.java index 948ab4e..0875e55 100644 --- a/src/com/sheepit/client/Job.java +++ b/src/com/sheepit/client/Job.java @@ -261,6 +261,8 @@ public class Job { new_env.put("BLENDER_USER_CONFIG", config.workingDirectory.getAbsolutePath().replace("\\", "\\\\")); new_env.put("CORES", Integer.toString(config.getNbCores())); new_env.put("PRIORITY", Integer.toString(config.getPriority())); + new_env.put("PYTHONPATH", ""); // make sure blender is using the embedded python, if not it could create "Fatal Python error: Py_Initialize" + new_env.put("PYTHONHOME", "");// make sure blender is using the embedded python, if not it could create "Fatal Python error: Py_Initialize" for (String arg : command1) { switch (arg) {