def get_path_parts(path):

    parts = []

    # Cut the end off the path repeatedly and add it to parts.
    while True:
        remaining, tail = os.path.split(path)

        # If there's nothing else to cut off
        if remaining == path:
            if path:
                parts.append(path)

            break
        else:
            path = remaining

        parts.append(tail)

    parts.reverse()

    return parts
Handle the show event.
dataset/ETHPy150Open brownhead/superzippy/superzippy/bootstrapper/zipsite.py/get_path_parts--crossover with--dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/wx/wx_page.py/wxPage.OnShow