kwallet.py 文件源码

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

项目:toggl2shotgun 作者: jfboismenu 项目源码 文件源码
def priority(cls):
        if 'dbus' not in globals():
            raise RuntimeError('python-dbus not installed')
        try:
            bus = dbus.SessionBus()
        except dbus.DBusException as exc:
            raise RuntimeError(exc.get_dbus_message())
        try:
            bus.get_object(cls.bus_name, cls.object_path)
        except dbus.DBusException:
            tmpl = 'cannot connect to {bus_name}'
            msg = tmpl.format(bus_name=cls.bus_name)
            raise RuntimeError(msg)
        return 4.9
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号