diff options
author | Bernat Gabor <bgabor8@bloomberg.net> | 2020-04-03 08:19:23 +0100 |
---|---|---|
committer | Bernat Gabor <bgabor8@bloomberg.net> | 2020-04-03 08:19:23 +0100 |
commit | edadbece423b100ff3513cd26670b1fc2631cbf3 (patch) | |
tree | d34612ea0111877c431c49e725bf46b5e56aeef8 /coverage/config.py | |
parent | 64bd04c44135f6e03df193032619c4794bd87314 (diff) | |
download | python-coveragepy-git-edadbece423b100ff3513cd26670b1fc2631cbf3.tar.gz |
Allow plugins to alter the paths config
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
Diffstat (limited to 'coverage/config.py')
-rw-r--r-- | coverage/config.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/coverage/config.py b/coverage/config.py index 78a3e86a..166f34ea 100644 --- a/coverage/config.py +++ b/coverage/config.py @@ -421,6 +421,9 @@ class CoverageConfig(object): `value` is the new value for the option. """ + if option_name == "paths": + self.paths = value + return # Check all the hard-coded options. for option_spec in self.CONFIG_FILE_OPTIONS: @@ -448,6 +451,9 @@ class CoverageConfig(object): Returns the value of the option. """ + if option_name == "paths": + return self.paths + # Check all the hard-coded options. for option_spec in self.CONFIG_FILE_OPTIONS: attr, where = option_spec[:2] |