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.
Below Code Returns the path until your project root
import sys print(sys.path[1])