programming-examples/python/_Basics/Get the path and name of the file that is currently executing.py

2 lines
71 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
import os
print("Current File Name : ",os.path.realpath(__file__))