check_hardware.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:anglerfish 作者: juancarlospaco 项目源码 文件源码
def __get_prop(obj, iface, prop):
    """Get object interface properties. Internal use only, dont touch."""
    if not dbus:
        log.warning("D-Bus module not found or not supported on this OS.")
        return  # Windows probably.
    try:
        return obj.Get(iface, prop, dbus_interface=dbus.PROPERTIES_IFACE)
    except (dbus.DBusException, dbus.exceptions.DBusException) as err:
        print(err)
        return
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号