I'm new to python.
I am new to stackoverflow.
I need to show the exact file link itself on python.
For example, I'm running the python file pyfile.py that is located on D:\pyprojects\pyfile.py. Is there a way to know the exact directory where the file pyfile.py is, including the file name?
(The result I'm wanting is not D:\pyprojects\, D:\pyprojects\pyfile.py)
Asked
Active
Viewed 16 times
0