From 39591478096fb670323c02170d464ce0680da05d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Tue, 13 Aug 2024 08:43:21 +0200 Subject: [PATCH] autoupdate_app_sources: do not rely on REPO_APPS_ROOT --- autoupdate_app_sources/autoupdate_app_sources.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/autoupdate_app_sources/autoupdate_app_sources.py b/autoupdate_app_sources/autoupdate_app_sources.py index 1ce08cc..0f13bb6 100755 --- a/autoupdate_app_sources/autoupdate_app_sources.py +++ b/autoupdate_app_sources/autoupdate_app_sources.py @@ -29,13 +29,13 @@ from rest_api import ( ) # noqa: E402,E501 pylint: disable=import-error,wrong-import-position import appslib.logging_sender # noqa: E402 pylint: disable=import-error,wrong-import-position from appslib.utils import ( - REPO_APPS_ROOT, get_catalog, ) # noqa: E402 pylint: disable=import-error,wrong-import-position from app_caches import ( app_cache_folder, ) # noqa: E402 pylint: disable=import-error,wrong-import-position +TOOLS_DIR = Path(__file__).resolve().parent.parent STRATEGIES = [ "latest_github_release", @@ -62,19 +62,19 @@ def get_github() -> tuple[ ]: try: github_login = ( - (REPO_APPS_ROOT / "tools" / ".github_login") + (TOOLS_DIR / ".github_login") .open("r", encoding="utf-8") .read() .strip() ) github_token = ( - (REPO_APPS_ROOT / "tools" / ".github_token") + (TOOLS_DIR / ".github_token") .open("r", encoding="utf-8") .read() .strip() ) github_email = ( - (REPO_APPS_ROOT / "tools" / ".github_email") + (TOOLS_DIR / ".github_email") .open("r", encoding="utf-8") .read() .strip()