Merge branch 'main' into feature/teacher

This commit is contained in:
莘权 马 2023-08-08 14:57:27 +08:00
commit 2bc10d1581
4 changed files with 13 additions and 2 deletions

View file

@ -93,6 +93,7 @@ class Engineer(Role):
def write_file(self, filename: str, code: str):
workspace = self.get_workspace()
filename = filename.replace('"', '').replace('\n', '')
file = workspace / filename
file.parent.mkdir(parents=True, exist_ok=True)
file.write_text(code)