Getting the name of the current script returns the name of the script currently running.
Solution for How to get the name of the current script in Python : You can use sys.argv to get the name of the current script Call sys.argv[0] to return the name of the current script.