Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
get self file name in python
Rodrigo Pelissier
Programming language:
Python
2021-05-09 12:03:38
0
Q:
get self file name in python
SamBC
Code:
Python
2021-06-10 04:40:18
import os os.path.basename(__file__)
1
Tags
name
python
get
file
Related
python get function from string name
python get all file names in directory
python get all file names in a dir
how to get name of class in class python
get files in directory python
get the name of a current script in python
get directory of file python
python get subparser name
how to get just the filename in python
python get current file location
python get path of current file
.get in python
python get filename from path
python get files in directory
get name of a file in python
python get script name
get file names in folder python
python how to get the folder name of a file
New to Communities?
Join the community