Wire up correct save path for deployment

This commit is contained in:
decentral1se 2021-04-02 15:49:18 +02:00
parent d9374dc48e
commit 1d1329b77e
Signed by untrusted user who does not match committer: decentral1se
GPG Key ID: 92DAD76BD9567B8A
1 changed files with 6 additions and 2 deletions

View File

@ -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}")