def _devbase(dev):
    dev = os.path.realpath(os.path.expandvars(dev))
    dev = os.path.basename(dev)
    return dev
Creates the widget.
dataset/ETHPy150Open saltstack/salt/salt/modules/bcache.py/_devbase--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/list_box.py/ListBox._create_control