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-18 14:44:36 +01:00
import os
print("Current File Name : ",os.path.realpath(__file__))