Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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__)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #current #script #python
ADD COMMENT
Topic
Name
3+9 =