Configuration: how to mix environment variable with static config in a list

I'm trying to exclude_files using a mix of environment variables and static configuration but the environment variable seems to be expanded to a list of it's own making it impossible to add to an existing list.

Example:

I have this environment variable
DYNAMIC_EXCLUDE='.*exclude1.*','.*exclude2.*'

I have this configuration
exclude_files: ['.*allwaysExclude.*', ${DYNAMIC_EXCLUDE} ]

How do I make the above work???

the environment variable gets converted to a list ending up with a list inside a list.

I can use the environment variable on it's own and it works but I have no way of mixing both.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.