def splitNameExtPostfix(name):
    knownExtPostfixes = EXTENSION_POSTFIXES
    for postfix in knownExtPostfixes:
        if endsWith(name, postfix):
            return (name[:(- len(postfix))], postfix)
    return (name, '')
def splitNameExtPostfix(name):
    knownExtPostfixes = EXTENSION_POSTFIXES
    for postfix in knownExtPostfixes:
        if endsWith(name, postfix):
            return (name[:(- len(postfix))], postfix)
    return (name, )