setup.py 文件源码

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

项目:constantina 作者: wwoast 项目源码 文件源码
def run(self):
        """Run a configuration script post-install"""
        command = ['./constantina/util/constantina_configure.py']
        if self.instance:
            command.append('--instance')
            command.append(self.instance)
        if self.hostname:
            command.append('--hostname')
            command.append(self.hostname)
        if self.port:
            command.append('--port')
            command.append(self.port)
        if self.data_root:
            command.append('--data-root')
            command.append(self.data_root)
        if self.username:
            command.append('--username')
            command.append(self.username)
        if self.groupname:
            command.append('--groupname')
            command.append(self.groupname)
        if self.cgi_bin:
            command.append('--cgi-bin')
            command.append(self.cgi_bin)
        if self.config_root:
            command.append('--config-root')
            command.append(self.config_root)
        self.announce(
            'Running command: %s' % str(command),
            level=distutils.log.INFO)
        subprocess.check_call(command)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号