daemon.py 文件源码

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

项目:SoCFoundationFlow 作者: mattaw 项目源码 文件源码
def check_support():
    global w_pyinotify, w_fam, w_gamin
    try:
        import pyinotify as w_pyinotify
    except ImportError:
        w_pyinotify = None
    else:
        try:
            wm = w_pyinotify.WatchManager()
            wm = w_pyinotify.Notifier(wm)
            wm = None
        except:
            raise
            w_pyinotify = None

    try:
        import gamin as w_gamin
    except ImportError:
        w_gamin = None
    else:
        try:
            test = w_gamin.WatchMonitor()
            test.disconnect()
            test = None
        except:
            w_gamin = None

    try:
        import _fam as w_fam
    except ImportError:
        w_fam = None
    else:
        try:
            test = w_fam.open()
            test.close()
            test = None
        except:
            w_fam = None
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号