# HG changeset patch # User Pierre-Yves David <pierre-yves.david@octobus.net> # Date 1660806296 -7200 # Thu Aug 18 09:04:56 2022 +0200 # Node ID 04aef913328545630886d69be028c3297331b9d4 # Parent b231b7ab42beba6f37c7307ace9a781272da601e auto-cases: makes auto-cases finds the python lib itself It significantly more practical to use. diff --git a/scm-perf/poulpe-scheduler-bin/auto-cases b/scm-perf/poulpe-scheduler-bin/auto-cases --- a/scm-perf/poulpe-scheduler-bin/auto-cases +++ b/scm-perf/poulpe-scheduler-bin/auto-cases @@ -2,10 +2,17 @@ from pathlib import Path import itertools +import os import random import subprocess import sys +x = os.path.abspath(sys.argv[0]) +x = os.path.dirname(x) +x = os.path.dirname(x) +poulpe_root = os.path.dirname(x) +sys.path.insert(0, os.path.join(poulpe_root, 'python-libs')) + import poulpe TARGET_PYTHON_VERSIONS = [