示例#1
0
    def prepare(self):
        code = export_to_python(self.model)

        file_name = os.path.join(self._resource_tmp_dir, "model.py")

        with open(file_name, "w") as f:
            f.write(code)
示例#2
0
    def prepare(self):
        code = export_to_python(self.model)

        file_name = self._resource_tmp_dir / "model.py"
        write_content_to_file(code, file_name)