Last Updated: February 25, 2016
·
428
· marknv

Get the path of current executing .py file

Get the path of current directory under which the .py file is executing.

file_path = os.path.dirname(os.path.abspath(__file__))

Written by Michael Ma

Recommend
Say Thanks
Update Notifications Off
Respond