python_builder.py 文件源码

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

项目:sublimeTextConfig 作者: luoye-fe 项目源码 文件源码
def _parse_tpl(self, cmd):
        """Parses the builder template
        """

        template_file = os.path.join(
            os.path.dirname(__file__),
            '../../', 'templates', 'python_build.tpl'
        )
        with open(template_file, 'r', encoding='utf8') as tplfile:
            template = Template(tplfile.read())

        cmd = cmd.replace('\\', '\\\\')
        return sublime.decode_value(
            template.safe_substitute({'python_interpreter': cmd})
        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号