I\'m trying to get the name of the Python script that is currently running.
I have a script called foo.py and I\'d like to do something like this in ord
foo.py
os.path.abspath(__file__) will give you an absolute path (relpath() available as well).
relpath()
sys.argv[-1] will give you a relative path.