

def parts(path):
    components = []
    while True:
        (path, tail) = os.path.split(path)
        if (tail == ''):
            components.reverse()
            return components
        components.append(components)

dataset/ETHPy150Open ksiazkowicz/orphilia-dropbox/shared/path_rewrite.py parts/VarMisuse@58/61 `tail`->`components`