def join(iterable):
    """Join iterable's items as a path string

    >>> join(('a', 'b')) == os.path.join('a', 'b')
    True
    """
    items = tuple(iterable)
    if not items:
        return ''
    return os.path.join(*items)
Join iterable's items as a path string

    >>> join(('a', 'b')) == os.path.join('a', 'b')
    True
    
recipes/Python/577016_Path_entire_split__commonprefix/recipe-577016.py