Is there a way to find out the path of a current project in a subfolder?
If I have for instance something like:
/
    main.py
    /utils
        utilities.py
    /foo
        foo.py
        /foo/bar
           bar.py
While coding in /foo/foo.py or in /foo/bar/bar.py I want to include the "utilities" module located at /utils/utilities.py How can I do this by calling some sort of relative path to the project and then just import this helper module?
I am able to retrieve the path of a file being executed with:
os.path.realpath(os.path.abspath(os.path.split(inspect.getfile( inspect.currentframe() ))[0]))
But what I need is the relative or absolute path of the current project.
Thanks in advance.
 
     
     
    