forked from toolshed/abra
		
	Wire up correct save path for deployment
This commit is contained in:
		| @ -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}") | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user