def SkypeAPI(opts):
    trans = opts.pop('Transport', 'dbus')
    if trans == 'dbus':
        from posix_dbus import SkypeAPI
    elif trans == 'x11':
        from posix_x11 import SkypeAPI
    else:
        raise SkypeAPIError('Unknown transport: %s' % trans)
    return SkypeAPI(opts)
dataset/ETHPy150Open Skype4Py/Skype4Py/Skype4Py/api/posix.py/SkypeAPI/original