Sourcing shell file from Python
I am working on a code which does multiprocessing. For this, I want to source different files accordingly. I want to have the sourcing inside my Python file as I am not very keen on bash. I tried all the solutions outlined in the following post, but nothing worked for me. Before running the Python file I source the file such that echo $DETECTOR_PATH
returns /data/tomble/eic/epic/install/share/epic
. Now, I run the Python file and I copy the directory which holds the sh
file:
Subprocess waiting for command to finish, how to let it not wait and still capture the output logs
I am running a python script which runs a shell command.