categories: the reader also from the caller's tools/ link, for a copy outside the home directory
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
000e8bd6e4
commit
9d4cd722f4
1 file changed
+3
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user