Fixed: Removed quotes in workspace path

This commit is contained in:
hy.li 2023-08-06 15:27:21 +08:00
parent 2296aceb0d
commit 1c3e816996

View file

@ -71,7 +71,7 @@ class Engineer(Role):
@classmethod
def parse_workspace(cls, system_design_msg: Message) -> str:
if system_design_msg.instruct_content:
return system_design_msg.instruct_content.dict().get("Python package name")
return system_design_msg.instruct_content.dict().get("Python package name").strip().strip("'").strip("\"")
return CodeParser.parse_str(block="Python package name", text=system_design_msg.content)
def get_workspace(self) -> Path: