(path)
return pathParts
given a full path, return its components without the extension
given a full path, return its components without the extension
given a full path return its components without the extension
def _getPathParts(path):
    "given a full path, return its components without the extension"
    head, tail = os.path.split(path[:-3])
    pathParts = [tail]
    while head and tail:
        head, tail = os.path.split(head)
        if tail:
            pathParts.append(tail)
    if head:
        pathParts.append(head)
    pathParts.reverse()
    return pathParts
def _getPathParts ( path ) : head , tail = os . path . split ( path [ : - 3 ] ) pathParts = [ tail ] while head and tail : head , tail = os . path . split ( head ) if tail : pathParts . append ( tail ) if head : pathParts . append ( head ) pathParts . reverse ( ) return pathParts