How to find the filename of a script being run when it is executed from a symlink on linux
- by Phil Boltt
Hi,
If I have a python script that is executed via a symlink, is there a way that I can find the path to the script rather than the symlink? I've tried using the methods suggested in this question, but they always return the path to the symlink, not the script.
For example, when this is saved as my "/usr/home/philboltt/scripts/test.py" :
…