easy_install.py 文件源码

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

项目:noc-orchestrator 作者: DirceuSilvaLabs 项目源码 文件源码
def as_header(self):
        """
        Workaround Jython's sys.executable being a .sh (an invalid
        shebang line interpreter)
        """
        if not is_sh(self[0]):
            return super(JythonCommandSpec, self).as_header()

        if self.options:
            # Can't apply the workaround, leave it broken
            log.warn(
                "WARNING: Unable to adapt shebang line for Jython,"
                " the following script is NOT executable\n"
                "         see http://bugs.jython.org/issue1112 for"
                " more information.")
            return super(JythonCommandSpec, self).as_header()

        items = ['/usr/bin/env'] + self + list(self.options)
        return self._render(items)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号