Compare commits

...

1 Commits

Author SHA1 Message Date
e65ac8fe4b [Fix] Use sys.executable instead of hardcoded python
Replace hardcoded "python" string with sys.executable to ensure
correct Python interpreter is used. This fixes failures on systems
with multiple Python runtimes or where "python" is not in PATH.

Similar to pytorch/pytorch#155918
2025-10-16 21:23:11 +08:00

View File

@ -640,7 +640,7 @@ class _ValgrindWrapper:
stat_log=stat_log,
bindings=self._bindings_module))
run_loop_cmd = ["python", script_file]
run_loop_cmd = [sys.executable, script_file]
else:
if collect_baseline:
raise AssertionError("collect_baseline must be False for non-Python timers")