fixture.py 文件源码

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

项目:cthulhu 作者: sholsapp 项目源码 文件源码
def render(self):
        # Render all instances
        for instance in self.instances:
            instance.render()
        # Render human readable links to each instance
        for instance in self.instances:
            try:
                os.symlink(instance.node_root, os.path.join(
                    self.fixture_root, instance.instance_name))
            except Exception:
                log.exception('Failed to create symlink to %s',
                              instance.instance_name)
        # Render the master control script
        self.write_file(self.fixture_control,
                        self.render_control(), perm=0o755)

        # Render the fixture specification file
        self.write_file(self.fixture_spec,
                        self.render_spec())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号