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
def basename(): x=__file__ y=x.split('\\') y1=y[-1] y2=y1.split('.') y3=y2[0] return(y2[0])