get current file path python where call is being made fomr' code example Example: python get path of current file import pathlib pathlib.Path(__file__).parent.absolute()