easy_install.py 文件源码

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

项目:jira_worklog_scanner 作者: pgarneau 项目源码 文件源码
def _load_template(dev_path):
        """
        There are a couple of template scripts in the package. This
        function loads one of them and prepares it for use.
        """
        # See https://github.com/pypa/setuptools/issues/134 for info
        # on script file naming and downstream issues with SVR4
        name = 'script.tmpl'
        if dev_path:
            name = name.replace('.tmpl', ' (dev).tmpl')

        raw_bytes = resource_string('setuptools', name)
        return raw_bytes.decode('utf-8')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号