diff --git a/scripts/smoke_nemo_relay_shared_metrics.py b/scripts/smoke_nemo_relay_shared_metrics.py index b07bf5ae38..b60a6b5dc7 100644 --- a/scripts/smoke_nemo_relay_shared_metrics.py +++ b/scripts/smoke_nemo_relay_shared_metrics.py @@ -585,11 +585,11 @@ def main() -> int: _write_config(home, server.server_port) env = os.environ.copy() env["HERMES_HOME"] = str(home) + python_paths = [str(hermes_repo)] if relay_python is not None: - env["PYTHONPATH"] = os.pathsep.join([ - str(relay_python), - env.get("PYTHONPATH", ""), - ]).rstrip(os.pathsep) + python_paths.append(str(relay_python)) + python_paths.append(env.get("PYTHONPATH", "")) + env["PYTHONPATH"] = os.pathsep.join(python_paths).rstrip(os.pathsep) result = subprocess.run( [ str(hermes), @@ -642,7 +642,7 @@ def main() -> int: skill_result = subprocess.run( [ - str(hermes.parent / "python"), + sys.executable, "-c", "\n".join([ "from hermes_cli.observability import relay_shared_metrics",