Do you guys know a more intelligent way to do this ?
os.path.split(os.path.split(os.path.split(os.getcwd())[0])[0])[0]
os.getcwd() is for example:
/my/path/to/my/directory
I should get
/my/path/
That is really an exaggeration and duplication of the os.path.split()
Thanks
os.getcwd()?os.path.dirname?