From 1d1329b77e0b8b2d4c731ab00b014b0ab18c033e Mon Sep 17 00:00:00 2001 From: decentral1se Date: Fri, 2 Apr 2021 15:49:18 +0200 Subject: [PATCH] Wire up correct save path for deployment --- bin/app-json.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/app-json.py b/bin/app-json.py index c04aa7a..61be448 100755 --- a/bin/app-json.py +++ b/bin/app-json.py @@ -12,6 +12,7 @@ from requests import get HOME_PATH = expanduser("~/") CLONES_PATH = Path(f"{HOME_PATH}/.abra/apps").absolute() +SCRIPT_PATH = Path(__file__).absolute().parent def clone_apps(): @@ -99,6 +100,9 @@ def get_app_versions(app_path): clone_apps() -with open(f"{getcwd()}/abra-apps.json", "w", encoding="utf-8") as handle: + +target = f"{SCRIPT_PATH}/../deploy/abra-apps.autonomic.zone/abra-apps.json" +with open(target, "w", encoding="utf-8") as handle: dump(gen_apps_json(), handle, ensure_ascii=False, indent=4) -print("Output saved to abra-apps.json") + +print(f"Output saved to {target}")