Don't use system python but blender's

This commit is contained in:
Laurent Clouet
2018-07-16 18:21:11 +02:00
parent 6c9d645005
commit 4dc0603587

View File

@@ -261,6 +261,8 @@ public class Job {
new_env.put("BLENDER_USER_CONFIG", config.workingDirectory.getAbsolutePath().replace("\\", "\\\\")); new_env.put("BLENDER_USER_CONFIG", config.workingDirectory.getAbsolutePath().replace("\\", "\\\\"));
new_env.put("CORES", Integer.toString(config.getNbCores())); new_env.put("CORES", Integer.toString(config.getNbCores()));
new_env.put("PRIORITY", Integer.toString(config.getPriority())); 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) { for (String arg : command1) {
switch (arg) { switch (arg) {