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