From e96ca93f0f97493f3da8754ae53493ba0b986280 Mon Sep 17 00:00:00 2001 From: Nathan Freeman Date: Thu, 26 Oct 2023 19:44:04 -0500 Subject: [PATCH] export path of task entrypoint dir in function bootstrap --- src/engine/src/helpers/function_bootstrap.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/src/helpers/function_bootstrap.py b/src/engine/src/helpers/function_bootstrap.py index 228ace18..02732e3a 100644 --- a/src/engine/src/helpers/function_bootstrap.py +++ b/src/engine/src/helpers/function_bootstrap.py @@ -3,5 +3,6 @@ if __name__ == "__main__": sys.path.append("/mnt/open-workflow-engine/pipeline/task/src") + sys.path.append(os.path.dirname(os.environ.get("_OWE_ENTRYPOINT_FILE_PATH"))) os.chdir(os.path.dirname(os.environ.get("_OWE_ENTRYPOINT_FILE_PATH"))) exec(open(os.environ.get("_OWE_ENTRYPOINT_FILE_PATH")).read()) \ No newline at end of file