From bab27014d9e93f35fdb0fd645b9f8023d1e13f15 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 23 Feb 2023 14:53:42 +0100 Subject: [PATCH] apps: when creating the app's bash env for script, make sure to use the manifest from the workdir instead of app setting dir, which is important for consistency during edge case when upgrade from v1 to v2 fails --- src/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app.py b/src/app.py index 67e0617dd..17ebe96ca 100644 --- a/src/app.py +++ b/src/app.py @@ -2845,7 +2845,8 @@ def _make_environment_for_app_script( ): app_setting_path = os.path.join(APPS_SETTING_PATH, app) - manifest = _get_manifest_of_app(app_setting_path) + manifest = _get_manifest_of_app(workdir if workdir else app_setting_path) + app_id, app_instance_nb = _parse_app_instance_name(app) env_dict = {