lets assume that I have the following python script :
python_script.py
import os
import subprocess
subprocess.Popen(['python2',os.path.join(os.path.expanduser("~"),"test","top_block.py")])
I have to check if this subprocess is calling a particular shared library (lib_modified.so). If it's true go ahead with the execution otherwise stop it.
Is there a way to achieve this?