# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1679473896 0
#      Wed Mar 22 08:31:36 2023 +0000
# Node ID 70c40e5afacd06bb27f764721951215af1e94686
# Parent  ec884cbb1d592be60eb466e52431794bf787562d
scheduling: invoke run-util the right way in the scheduling loop

diff --git a/suites/hg/scheduling/loop b/suites/hg/scheduling/loop
--- a/suites/hg/scheduling/loop
+++ b/suites/hg/scheduling/loop
@@ -16,6 +16,8 @@
 #ensure we don't buffer the debug line…
 print = functools.partial(print, flush=True)
 
+parent_dir = Path(__file__).parent
+
 ACTION_FILE = "current.poulpe-schedule"
 
 RESULT_DIR = "results"
@@ -78,9 +80,9 @@
     data_env = base_dir / DATA_ENV_DIR / data_env
     benchmark = base_dir / BENCHMARK_DIR / benchmark
 
-    run_script = base_dir / "bin/run-util"
     cmd = [
-            str(run_script),
+            "poulpe",
+            "run-util",
             str(bin_env),
             str(data_env),
             str(benchmark),