For example, I can use Python scripts in PHP like there:
exec(\"python script.py params\",$result);
where \"script.py\" - script name and v
I used the following python call from a ruby module.
In my case using exec() didn't work because it interrupts the current process and caused the simulation I was running to fail.
exec()
# run python script `python #{py_path_py} #{html_path_py} #{write_path_py}`