def modname(path):

    base = os.path.basename(path)
    filename, ext = os.path.splitext(base)
    return filename
Common parts for client and server segmentation.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/trace.py/modname--crossover with--dataset/ETHPy150Open JoelBender/bacpypes/py25/bacpypes/appservice.py/SSM.__init__