Skip to content

Commit

Permalink
Merge pull request #545 from valory-xyz/fix/path-order-for-tendermint
Browse files Browse the repository at this point in the history
path fix for bundled in tendermint excutable search
  • Loading branch information
solarw authored Dec 8, 2024
2 parents 696a3d7 + 147da24 commit 0285115
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions operate/services/deployment_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def _kill_process(pid: int) -> None:
process.kill()
except OSError:
return
except psutil.AccessDenied:
return
time.sleep(1)


Expand Down Expand Up @@ -279,9 +281,9 @@ def _start_tendermint(self) -> None:

if platform.system() == "Windows":
# to look up for bundled in tendermint.exe
env["PATH"] = os.environ["PATH"] + ";" + os.path.dirname(sys.executable)
env["PATH"] = os.path.dirname(sys.executable) + ";" + os.environ["PATH"]
else:
env["PATH"] = os.environ["PATH"] + ":" + os.path.dirname(sys.executable)
env["PATH"] = os.path.dirname(sys.executable) + ":" + os.environ["PATH"]

tendermint_com = self._tendermint_bin # type: ignore # pylint: disable=protected-access
process = subprocess.Popen( # pylint: disable=consider-using-with # nosec
Expand Down

0 comments on commit 0285115

Please sign in to comment.