Relative Content

Tag Archive for pythonlinuxshell

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: