Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get self file name in python

import os

os.path.basename(__file__)
 
PREVIOUS NEXT
Tagged: #file #python
ADD COMMENT
Topic
Name
5+6 =