Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

get self file name in python

import os

os.path.basename(__file__)
Comment

PREVIOUS NEXT
Code Example
Python :: python remove read only file 
Python :: List comprehension - list files with extension in a directory 
Python :: django foreign key field on delete do nothing 
Python :: how to write to an output file in pytion 
Python :: fibonacci python 
Python :: for e in p.event.get(): pygame.error: video system not initialized 
Python :: scikit learn r2 score 
Python :: remove x label matplotlib 
Python :: cv2 image object to base64 string 
Python :: how to read excel file in jupyter notebook 
Python :: format date field in pandas 
Python :: python day from date 
Python :: tkinter center frame 
Python :: np not defined 
Python :: python months between two dates 
Python :: pandas index to list 
Python :: PySpark columns with null or missing values 
Python :: py spam message 
Python :: python ceiling 
Python :: debug flask powershel 
Python :: get content of one column in pandas 
Python :: python - exclude rowin data frame based on value 
Python :: Renaming row value in pandas 
Python :: how to add numbers in python using for loop 
Python :: sort list of dictionaries python by value 
Python :: import models 
Python :: django annotate concat string 
Python :: python float to fraction 
Python :: python max absolute value 
Python :: python detect keypress 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =