summaryrefslogtreecommitdiff
path: root/scripts/run_sweep.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/run_sweep.py')
-rw-r--r--scripts/run_sweep.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/run_sweep.py b/scripts/run_sweep.py
index 9be5592..34cccf7 100644
--- a/scripts/run_sweep.py
+++ b/scripts/run_sweep.py
@@ -22,7 +22,8 @@ import time
from concurrent.futures import ThreadPoolExecutor, as_completed
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
-PY = os.path.join(ROOT, ".venv", "bin", "python")
+_venv_py = os.path.join(ROOT, ".venv", "bin", "python")
+PY = _venv_py if os.path.exists(_venv_py) else sys.executable
def parse_jobs(path: str) -> list[dict]: