I\'ve got a python project with a configuration file in the project root. The configuration file needs to be accessed in a few different files throughout the project.
Try:
ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))