From 9ebd38d1ce046d2d9bff49f7a0c7d2b68f816f0d Mon Sep 17 00:00:00 2001 From: nsheff Date: Fri, 13 Oct 2023 20:04:55 -0400 Subject: [PATCH] remove get_first_env_var for yacman update --- bedhost/cli.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/bedhost/cli.py b/bedhost/cli.py index 07b0a58f..f06342e7 100644 --- a/bedhost/cli.py +++ b/bedhost/cli.py @@ -1,5 +1,5 @@ from ubiquerg import VersionInHelpParser -from yacman import get_first_env_var +from yacman import select_config def build_parser(): @@ -8,11 +8,7 @@ def build_parser(): :return argparse.ArgumentParser """ - env_var_val = ( - get_first_env_var(CFG_ENV_VARS)[1] - if get_first_env_var(CFG_ENV_VARS) is not None - else "not set" - ) + env_var_val = select_config(config_env_vars=CFG_ENV_VARS) banner = "%(prog)s - REST API for the bedstat pipeline produced statistics" additional_description = ( "For subcommand-specific options, type: '%(prog)s -h'"