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:
The best solution (for python >= 3.4) when executing from any directory is:
from pathlib import Path two_up = Path(__file__).resolve().parents[1]