Ok...I dont know where module x is, but I know that I need to get the path to the directory two levels up.
x
So, is there a more elegant way to do:
For getting the directory 2 levels up:
import os.path as path two_up = path.abspath(path.join(os.getcwd(),"../.."))