diff options
Diffstat (limited to 'src/mailman/options.py')
| -rw-r--r-- | src/mailman/options.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mailman/options.py b/src/mailman/options.py index d18c78cea..85508501a 100644 --- a/src/mailman/options.py +++ b/src/mailman/options.py @@ -137,10 +137,8 @@ class Options: from the configuration files. :type propagate_logs: bool or None. """ - # Fall back to using the environment variable if -C is not given. - config_file = (os.getenv('MAILMAN_CONFIG_FILE') - if self.options.config is None - else self.options.config) + # The environment variable overrides the -C option. + config_file = os.getenv('MAILMAN_CONFIG_FILE', self.options.config) initialize(config_file, propagate_logs=propagate_logs) self.sanity_check() |
