<filename>whereami.py
import pathlib
ROOT = str(pathlib.Path(__file__).parent.resolve())

if __name__=='__main__':
    print(str(ROOT))
<filename>whereami.py
import pathlib
ROOT = str(pathlib.Path(__file__).parent.resolve())

if __name__=='__main__':
    print(str(ROOT))