Wire up correct save path for deployment
This commit is contained in:
parent
d9374dc48e
commit
1d1329b77e
@ -12,6 +12,7 @@ from requests import get
|
|||||||
|
|
||||||
HOME_PATH = expanduser("~/")
|
HOME_PATH = expanduser("~/")
|
||||||
CLONES_PATH = Path(f"{HOME_PATH}/.abra/apps").absolute()
|
CLONES_PATH = Path(f"{HOME_PATH}/.abra/apps").absolute()
|
||||||
|
SCRIPT_PATH = Path(__file__).absolute().parent
|
||||||
|
|
||||||
|
|
||||||
def clone_apps():
|
def clone_apps():
|
||||||
@ -99,6 +100,9 @@ def get_app_versions(app_path):
|
|||||||
|
|
||||||
|
|
||||||
clone_apps()
|
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)
|
dump(gen_apps_json(), handle, ensure_ascii=False, indent=4)
|
||||||
print("Output saved to abra-apps.json")
|
|
||||||
|
print(f"Output saved to {target}")
|
||||||
|
Loading…
Reference in New Issue
Block a user