From ec3658467208dd369a6f77fb1e5223cec4bac440 Mon Sep 17 00:00:00 2001 From: Yee Hing Tong Date: Fri, 13 May 2022 14:47:29 -0700 Subject: [PATCH] read packages from environment variables Signed-off-by: Yee Hing Tong --- flytekit/clis/sdk_in_container/pyflyte.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flytekit/clis/sdk_in_container/pyflyte.py b/flytekit/clis/sdk_in_container/pyflyte.py index edbd5da79d..c2b5f2b045 100644 --- a/flytekit/clis/sdk_in_container/pyflyte.py +++ b/flytekit/clis/sdk_in_container/pyflyte.py @@ -51,8 +51,8 @@ def main(ctx, pkgs=None, config=None): """ ctx.obj = dict() - # Handle package management - get from config if not specified on the command line - pkgs = pkgs or [] + # Handle package management - get from the command line, the environment variables, then the config file. + pkgs = pkgs or LocalSDK.WORKFLOW_PACKAGES.read() or [] if config: ctx.obj[CTX_CONFIG_FILE] = config cfg = configuration.ConfigFile(config)