diff --git a/dmrpp_generator/main.py b/dmrpp_generator/main.py index 4cead55..26ba157 100644 --- a/dmrpp_generator/main.py +++ b/dmrpp_generator/main.py @@ -173,9 +173,8 @@ def get_dmrpp_command(self, dmrpp_meta, input_path, output_filename, local=False options = dmrpp_options.get_dmrpp_option(dmrpp_meta=dmrpp_meta) local_option = f"-u file://{output_filename}" if '-u' in options else '' - use_lambda = dmrpp_meta.get('use_lambda', False) s_option = '' - if isinstance(use_lambda, bool) and use_lambda: + if os.getenv('AWS_LAMBDA_FUNCTION_NAME'): s_option = '-s /etc/bes/site.conf' dmrpp_cmd = f"get_dmrpp {s_option} {options} {input_path} -o {output_filename}.dmrpp" \