python como obter o local do projeto

ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
Delightful Dragonfly