Skip to content

Commit 05dde70

Browse files
committed
app config file removal in codegen - xAOD
1 parent ce5146d commit 05dde70

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

servicex_codegen/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ 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 'CODEGEN_CONFIG_FILE' in os.environ:
62+
app.config.from_envvar('CODEGEN_CONFIG_FILE')
6063

6164
with app.app_context():
6265
translator = provided_translator

0 commit comments

Comments
 (0)