Skip to content

Commit

Permalink
chore: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoreira-valory committed Dec 20, 2024
1 parent a96c3a7 commit 1cbbd44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions operate/services/deployment_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ class BaseDeploymentRunner(AbstractDeploymentRunner, metaclass=ABCMeta):

def _run_aea(self, *args: str, cwd: Path) -> Any:
"""Run aea command."""
return self._run_cmd(args=[self._aea_bin, *args], cwd=cwd)
# TODO: Patch for Windows failing hash (add -s). Revert once it's fixed on OpenAutonomy / OpenAEA
return self._run_cmd(args=[self._aea_bin, "-s", *args], cwd=cwd)

@staticmethod
def _run_cmd(args: t.List[str], cwd: t.Optional[Path] = None) -> None:
Expand Down Expand Up @@ -258,8 +259,7 @@ def _start_agent(self) -> None:
env["PYTHONIOENCODING"] = "utf8"
env = {**os.environ, **env}
process = subprocess.Popen( # pylint: disable=consider-using-with # nosec
# TODO: Patch for Windows failing hash. Revert once it's fixed on OpenAutonomy / OpenAEA
args=[self._aea_bin, "run", "-s"] if platform.system() == "Windows" else [self._aea_bin, "run"],
args=[self._aea_bin, "run"],
cwd=working_dir / "agent",
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
Expand Down

0 comments on commit 1cbbd44

Please sign in to comment.