def pathjoin(base, *paths):
    # XXXX will posixpath.join do all this anyway?
    if base and not base.endswith('/'):
        # get rid of the filename
        base = '/'.join(base.split('/')[:-1])
    base = tslash(base)
    path = (base,) + paths
    return posixpath.normpath(posixpath.join(*path))
Process one or more messages received by the protocol.
dataset/ETHPy150Open miracle2k/webassets/src/webassets/filter/cssrewrite/urlpath.py/pathjoin--crossover with--dataset/ETHPy150Open p2k/pygowave/pygowave_server/service.py/IPyGoWaveService.process