favorites.py 文件源码

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

项目:sublime-favorites 作者: oleg-shilo 项目源码 文件源码
def panel_file():

    plugin_dir = ''

    if hasattr(sublime, 'cache_path'):
        plugin_dir = sublime.cache_path()
    else:
        plugin_dir = 'cache'
        plugin_dir = os.path.join(os.getcwd(), plugin_dir)

    data_dir = path.join(plugin_dir, panel_name)
    if not path.exists(data_dir):
        os.makedirs(data_dir)
    return path.join(data_dir, panel_name)
# -----------------
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号