ToolTipHelper.py 文件源码

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

项目:ToolTip-Helper 作者: AvitanI 项目源码 文件源码
def get_tooltip_files(self, current_scope):
        """ get all files paths which have the current scope"""
        files = self.get_immediate_files()
        relative_path = sublime.packages_path() + '\\ToolTipHelper\\'
        tooltip_files = []

        if files:
            for file in files:  
                if file['source'] in current_scope:
                    full_path = relative_path + file['file_name']
                    # replace the file name with full path
                    file['file_name'] = full_path
                    tooltip_files.append(file)
        # print("tooltip_files: " + str(tooltip_files))      
        return tooltip_files
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号