ida_settings.py 文件源码

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

项目:ida-settings 作者: williballenthin 项目源码 文件源码
def has_qsettings_write_permission(settings):
    value = datetime.datetime.now().isoformat("T")
    settings.setValue(MARKER_KEY, value)
    settings.sync()
    # there's a race here, if another thread/process also
    # performs the same check at the same time
    if settings.status() != QtCore.QSettings.NoError:
        return False
    if settings.value(MARKER_KEY) != value:
        return False
    settings.remove(MARKER_KEY)
    settings.sync()
    return True
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号