The OSX package of blender require a specific path to be launch. If the path is modified 'dyld: Library not loaded: @loader_path' error or static python appear on blender 2.72
This commit is contained in:
@@ -21,6 +21,8 @@ package com.sheepit.client;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import com.sheepit.client.os.OS;
|
||||
|
||||
public class Job {
|
||||
private String numFrame;
|
||||
private String sceneMD5;
|
||||
@@ -165,7 +167,7 @@ public class Job {
|
||||
}
|
||||
|
||||
public String getRendererPath() {
|
||||
return getRendererDirectory() + File.separator + "rend.exe";
|
||||
return getRendererDirectory() + File.separator + OS.getOS().getRenderBinaryPath();
|
||||
}
|
||||
|
||||
public String getRendererArchivePath() {
|
||||
|
||||
@@ -41,6 +41,11 @@ public class Linux extends OS {
|
||||
return "linux";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRenderBinaryPath() {
|
||||
return "rend.exe";
|
||||
}
|
||||
|
||||
@Override
|
||||
public CPU getCPU() {
|
||||
CPU ret = new CPU();
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
package com.sheepit.client.os;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
|
||||
@@ -39,6 +40,11 @@ public class Mac extends OS {
|
||||
return "mac";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRenderBinaryPath() {
|
||||
return "Blender" + File.separator + "blender.app" + File.separator + "Contents" + File.separator + "MacOS" + File.separator + "blender";
|
||||
}
|
||||
|
||||
@Override
|
||||
public CPU getCPU() {
|
||||
CPU ret = new CPU();
|
||||
|
||||
@@ -31,6 +31,8 @@ public abstract class OS {
|
||||
|
||||
public abstract int getMemory();
|
||||
|
||||
public abstract String getRenderBinaryPath();
|
||||
|
||||
public String getCUDALib() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -35,6 +35,11 @@ public class Windows extends OS {
|
||||
return "windows";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRenderBinaryPath() {
|
||||
return "rend.exe";
|
||||
}
|
||||
|
||||
@Override
|
||||
public CPU getCPU() {
|
||||
CPU ret = new CPU();
|
||||
|
||||
Reference in New Issue
Block a user