Set the BLENDER_USER_CONFIG env variable to not use the local blender conf
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
package com.sheepit.client.os;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
|
||||
import com.sheepit.client.hardware.cpu.CPU;
|
||||
|
||||
@@ -37,9 +38,12 @@ public abstract class OS {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Process exec(String[] command) throws IOException {
|
||||
public Process exec(String[] command, Map<String, String> env) throws IOException {
|
||||
ProcessBuilder builder = new ProcessBuilder(command);
|
||||
builder.redirectErrorStream(true);
|
||||
if (env != null) {
|
||||
builder.environment().putAll(env);
|
||||
}
|
||||
return builder.start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user