I start my python code file foo.py from directory home/a/b/.
The file foo.py is located at home/x/y/k.
Inside the file foo.py what can be the way to get path home/x/y/k.
I have used the functions os.getcwd() and os.path.realpath(), they all return home/a/b.
I will appreciate any help in the direction.
 
     
    