Skip to content

Commit b7c7881

Browse files
committed
read variable from environ
1 parent d346171 commit b7c7881

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

servicex_codegen/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ def create_app(test_config=None, provided_translator=None):
5757

5858
if test_config:
5959
app.config.from_mapping(test_config)
60-
else:
61-
if 'TRANSFORMER_SCIENCE_IMAGE' in os.environ:
62-
app.config.from_envvar('TRANSFORMER_SCIENCE_IMAGE')
6360

6461
with app.app_context():
6562
translator = provided_translator

servicex_codegen/post_operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def post(self):
9292
zip_data = self.stream_generated_code(generated_code_result)
9393
# code gen transformer returns the default transformer image mentioned in
9494
# the config file
95-
transformer_image = current_app.config.get("TRANSFORMER_SCIENCE_IMAGE")
95+
transformer_image = os.environ.get("TRANSFORMER_SCIENCE_IMAGE")
9696

9797
# MultipartEncoder library takes multiple types of data fields and merge
9898
# them into a multipart mime data type

0 commit comments

Comments
 (0)