mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
autopatch: do not rely on REPO_APPS_ROOT
This commit is contained in:
parent
4093cb4adb
commit
375db3c955
1 changed files with 4 additions and 3 deletions
|
@ -14,19 +14,20 @@ import toml
|
||||||
sys.path.insert(0, str(Path(__file__).parent.parent))
|
sys.path.insert(0, str(Path(__file__).parent.parent))
|
||||||
|
|
||||||
from appslib.utils import ( # noqa: E402 pylint: disable=import-error,wrong-import-position
|
from appslib.utils import ( # noqa: E402 pylint: disable=import-error,wrong-import-position
|
||||||
REPO_APPS_ROOT,
|
|
||||||
get_catalog,
|
get_catalog,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
TOOLS_DIR = Path(__file__).resolve().parent.parent
|
||||||
|
|
||||||
my_env = os.environ.copy()
|
my_env = os.environ.copy()
|
||||||
my_env["GIT_TERMINAL_PROMPT"] = "0"
|
my_env["GIT_TERMINAL_PROMPT"] = "0"
|
||||||
os.makedirs(".apps_cache", exist_ok=True)
|
os.makedirs(".apps_cache", exist_ok=True)
|
||||||
|
|
||||||
login = (
|
login = (
|
||||||
(REPO_APPS_ROOT / "tools/.github_login").open("r", encoding="utf-8").read().strip()
|
(TOOLS_DIR / ".github_login").open("r", encoding="utf-8").read().strip()
|
||||||
)
|
)
|
||||||
token = (
|
token = (
|
||||||
(REPO_APPS_ROOT / "tools/.github_token").open("r", encoding="utf-8").read().strip()
|
(TOOLS_DIR / ".github_token").open("r", encoding="utf-8").read().strip()
|
||||||
)
|
)
|
||||||
github_api = "https://api.github.com"
|
github_api = "https://api.github.com"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue