Skip to content

Commit

Permalink
temp: add binary
Browse files Browse the repository at this point in the history
  • Loading branch information
0xArdi committed Jun 18, 2024
1 parent 39be1ad commit 48dfbb4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions operate/services/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import shutil
import signal
import subprocess # nosec
import sys
import time
import typing as t
from copy import copy, deepcopy
Expand Down Expand Up @@ -385,7 +386,7 @@ def _setup_agent(working_dir: Path) -> None:
encoding="utf-8",
)

abin = 'aea_bin'
abin = str(Path(sys._MEIPASS) / 'aea_bin')
# Fetch agent
_run_cmd(
args=[
Expand Down Expand Up @@ -430,7 +431,7 @@ def _setup_agent(working_dir: Path) -> None:
def _start_agent(working_dir: Path) -> None:
"""Start agent process."""
env = json.loads((working_dir / "agent.json").read_text(encoding="utf-8"))
aea_bin = 'aea_bin'
aea_bin = str(Path(sys._MEIPASS) / 'aea_bin')
process = subprocess.Popen( # pylint: disable=consider-using-with # nosec
args=[aea_bin, "run"],
cwd=working_dir / "agent",
Expand All @@ -450,7 +451,7 @@ def _start_agent(working_dir: Path) -> None:
def _start_tendermint(working_dir: Path) -> None:
"""Start tendermint process."""
env = json.loads((working_dir / "tendermint.json").read_text(encoding="utf-8"))
tendermint_com = "tendermint"
tendermint_com = str(Path(sys._MEIPASS) / "tendermint")
process = subprocess.Popen( # pylint: disable=consider-using-with # nosec
args=[tendermint_com],
cwd=working_dir,
Expand Down

0 comments on commit 48dfbb4

Please sign in to comment.