From e3414cf7bfb19707fe0a5f72cce2a3a92eceb2bc Mon Sep 17 00:00:00 2001 From: MialLewis <95620982+MialLewis@users.noreply.github.com> Date: Tue, 19 Dec 2023 11:15:52 +0000 Subject: [PATCH] run black on handler --- EVSVesuvio/scripts/handle_config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/EVSVesuvio/scripts/handle_config.py b/EVSVesuvio/scripts/handle_config.py index 864da02d..403c5433 100644 --- a/EVSVesuvio/scripts/handle_config.py +++ b/EVSVesuvio/scripts/handle_config.py @@ -1,8 +1,9 @@ import os from shutil import copyfile, copytree, ignore_patterns + def __parse_config_env_var(): - env_var = os.getenv('VESUVIOPROPERTIES') + env_var = os.getenv("VESUVIOPROPERTIES") if env_var: config_path, config_file = os.path.split(env_var) else: @@ -10,6 +11,7 @@ def __parse_config_env_var(): config_file = "vesuvio.user.properties" return config_path, config_file + ### PATH CONSTANTS ### VESUVIO_CONFIG_PATH, VESUVIO_CONFIG_FILE = __parse_config_env_var() VESUVIO_INPUTS_FILE = "analysis_inputs.py" @@ -18,6 +20,7 @@ def __parse_config_env_var(): VESUVIO_IPFOLDER_PATH = os.path.join(VESUVIO_CONFIG_PATH, "ip_files") ###################### + def __read_config(config_file_path, throw_on_not_found=True): lines = "" try: