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
The first argument in sys will be the current file name so this will work
import sys print sys.argv[0] # will print the file name