Last Updated: February 25, 2016
·
424
· 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__))