I have a several diferent shell scripts calling one single python script.
I'm trying to figure out how can I know which shell script is calling my python script within the python script.
I've already tried with "inspect.stack" but it only gives me the python script itself.
Any suggestion how to do this? Something similar to ${BASH_SOURCE} in shell script
Note: I'm using python 2.6
Thanks