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
we can try this to get current script name without extension.
import os script_name = os.path.splitext(os.path.basename(__file__))[0]