add python script controller
This commit is contained in:
parent
d013ff024b
commit
2dcdab78b5
@ -27,7 +27,7 @@ public class ScriptServiceImpl implements IScriptService {
|
||||
@Override
|
||||
public void execPython(String scriptPath) {
|
||||
try {
|
||||
ProcessBuilder pb = new ProcessBuilder("/usr/bin/python", scriptPath);
|
||||
ProcessBuilder pb = new ProcessBuilder("/usr/bin/python3", scriptPath);
|
||||
//启动进程
|
||||
Process process = pb.start();
|
||||
executor.execute(() -> {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user