Skip to content

Commit

Permalink
chore: 调整一下py参数
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Mar 5, 2025
1 parent 5d5f382 commit 3dd3a40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/binding/Python/maa/agent/agent_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def register_custom_action(name: str, action: "CustomAction") -> bool: # type:
)

@staticmethod
def start_up(identifier: str = sys.argv[-1]) -> bool:
def start_up(identifier: str) -> bool:

AgentServer._set_api_properties()

Expand Down
4 changes: 3 additions & 1 deletion test/agent/agent_child_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@


def main():
AgentServer.start_up(sys.argv[-1])
socket_id = sys.argv[-1]
AgentServer.start_up(socket_id)
AgentServer.join()
AgentServer.shut_down()


@AgentServer.custom_recognition("MyRec")
Expand Down

0 comments on commit 3dd3a40

Please sign in to comment.