Skip to content

The agent that grows with you

fix: termux script error

Maciej Lisiewski13b699106d90
diff --git a/scripts/termux/stage_apt_repo.py b/scripts/termux/stage_apt_repo.py
index 0478aed312f..b9c4cb6c23d 100644
--- a/scripts/termux/stage_apt_repo.py
+++ b/scripts/termux/stage_apt_repo.py
@@ -32,6 +32,9 @@ import time
from pathlib import Path
from typing import NoReturn
+if __package__ in (None, ""):
+ sys.path.insert(0, str(Path(__file__).resolve().parents[2]))
+
from scripts.releases.versioning import parse_attempt_ref
ARCH = "aarch64"