Answers for "how to find the name of executing python script from within itself"

0

get the name of a current script in python

Use __file__. If you want to omit the directory part (which might be present), you can use os.path.basename(__file__)
Posted by: Guest on February-25-2020

Code answers related to "how to find the name of executing python script from within itself"

Python Answers by Framework

Browse Popular Code Answers by Language