From ba0fdb8ae29b52093af4ca79102b2a329e4fa734 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 20 Jan 2023 18:07:01 +0100 Subject: [PATCH] update_app_level: use absolute path for github token fetching --- update_app_levels/update_app_levels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_app_levels/update_app_levels.py b/update_app_levels/update_app_levels.py index 12713de..fc83326 100644 --- a/update_app_levels/update_app_levels.py +++ b/update_app_levels/update_app_levels.py @@ -7,7 +7,7 @@ import sys import json from collections import OrderedDict -token = open(".github_token").read().strip() +token = open(os.path.dirname(__file__) + "/../../.github_token").read().strip() tmpdir = tempfile.mkdtemp(prefix="update_app_levels_") os.system(f"git clone 'https://oauth2:{token}@github.com/yunohost/apps' {tmpdir}")