For example:
mypath = "C:\\some_folder\\some_subfolder" How to get the parent directory on this path? Of course it is possible
parent = os.path.abspath(os.path.join(mypath, '..')) but this way seems to me somehow clumsy, like
parent = os.sep.join(os.path.split(mypath)[:-1])