Is is possible to import a function from bash to python? If so, what is theThe only possibility is to use the subprocess module
syntax and how should I pass the input parameters?
and this is a more general problem, one involving the
invocation of external processes to perform some work
for you and get the resutls.
Read: pydoc subprocess
Directly importing a bash function into python is not
possible. Write a bash script, then call it with subprocess.
--JamesMills
--
--
-- "Problems are solved by method"