Don't use system python but blender's
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user