def join(*paths):
    """
    Joins multiple paths into a single path.

    Arguments:
    *paths -- path components
    """
    path = ""
    for component in paths:
        path += ("/" if path and not path.endswith("/") else "") + component.replace(
            "\\", "/"
        )
    return path