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})
)
评论列表
文章目录