Find current directory and file's directory,os.path.dirname(path)