current path of the running file in python From https://stackoverflow.com/questions/5137497/find-current-directory-and-files-directory
import os dir_path = os.path.dirname(os.path.realpath(__file__))