text_commands.py 文件源码

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

项目:sublime_gpg 作者: dmitrievav 项目源码 文件源码
def temporary_settings_fix():
    s = sublime.load_settings('gpg.sublime-settings')
    if s.has('gpg_command'):
        s.set('gpg.command', s.get('gpg_command', 'gpg'))
        s.erase('gpg_command')
    if s.has('homedir'):
        s.set('gpg.homedir', s.get('homedir', ''))
        s.erase('homedir')
    if s.has('verbosity'):
        s.set('gpg.verbosity', s.get('verbosity', 1))
        s.erase('verbosity')
    if s.has('recipients'):
        s.set('gpg.recipients', s.get('recipients', ''))
        s.erase('recipients')
    if s.has('first_run'):
        s.set('gpg.readme_shown', not s.get('first_run', True))
        s.erase('first_run')
    sublime.save_settings('gpg.sublime-settings')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号