Package org.molgenis.python
Class PythonScriptExecutor
- java.lang.Object
-
- org.molgenis.python.PythonScriptExecutor
-
@Service public class PythonScriptExecutor extends Object
Executes a Python script with the Python version installed on server executable in a new process.
-
-
Constructor Summary
Constructors Constructor Description PythonScriptExecutor(String pythonScriptExecutable)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecuteScript(String pythonScript, PythonOutputHandler outputHandler)Execute a python script and wait for it to finishprotected static String[]getCommand(String pythonScriptExecutable, String tempScriptFilePath)
-
-
-
Constructor Detail
-
PythonScriptExecutor
public PythonScriptExecutor(@Value("${python_script_executable:/usr/bin/python}") String pythonScriptExecutable)
-
-
Method Detail
-
executeScript
public void executeScript(String pythonScript, PythonOutputHandler outputHandler)
Execute a python script and wait for it to finish
-
-