fix path problem

This commit is contained in:
better629 2024-03-29 00:25:51 +08:00
parent a0efe97c71
commit e3e49eee03
3 changed files with 4 additions and 3 deletions

View file

@ -62,7 +62,7 @@ def startup(
)
)
team.hire([AndroidAssistant(output_root_dir=Path(__file__))])
team.hire([AndroidAssistant(output_root_dir=Path(__file__).parent)])
team.invest(investment)
team.run_project(idea=task_desc)
asyncio.run(team.run(n_round=n_round))

View file

@ -475,7 +475,6 @@ class ActionNode:
timeout=USE_CONFIG_TIMEOUT,
exclude=[],
):
logger.info("进入fill")
"""Fill the node(s) with mode.
:param context: Everything we should know when filling node.

View file

@ -42,7 +42,9 @@ class AndroidAssistant(Role):
self._watch([UserRequirement, AndroidActionOutput])
self.task_desc = config.get_other("task_desc", "Just explore any app in this phone!")
app_name = config.get_other("app_name", "demo")
data_dir = self.output_root_dir.absolute() or EXAMPLE_PATH.joinpath("android_assistant/output")
data_dir = self.output_root_dir.absolute().joinpath("output") or EXAMPLE_PATH.joinpath(
"android_assistant/output"
)
cur_datetime = datetime.fromtimestamp(int(time.time())).strftime("%Y-%m-%d_%H-%M-%S")
"""Firstly, we decide the state with user config, further, we can do it automatically, like if it's new app,