diff --git a/scripts/categories.py b/scripts/categories.py index 09b7bdd..b97e220 100644 --- a/scripts/categories.py +++ b/scripts/categories.py @@ -21,9 +21,10 @@ from datetime import datetime, timedelta, timezone from pathlib import Path # The detectors next to this file, and the single reader of the measurements: data.py of the tools repository, the -# sibling of this one (one copy of each repository in the home directory). +# sibling of this one (one copy of each repository in the home directory), else the tools/ link of the caller's root +# (a copy of this repository elsewhere, e.g. extracted by git archive). HERE = Path(__file__).resolve().parent -sys.path[:0] = [str(HERE), str(HERE.parents[1] / "aimsight-tools" / "scripts")] +sys.path[:0] = [str(HERE), str(HERE.parents[1] / "aimsight-tools" / "scripts"), str(Path.cwd() / "tools" / "scripts")] from common import targets # noqa: E402 from data import iso, load # noqa: E402