diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-10-21 11:40:06 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-10-21 11:40:06 -0400 |
commit | b208f521fc4f2d56581e50a1450d710609897332 (patch) | |
tree | dd31048b83bd195cd3f1ca8caf104281b33a4ffe /coverage/config.py | |
parent | 9b8a322c8e49e7e5373bda088e8cf03452f7823e (diff) | |
download | python-coveragepy-b208f521fc4f2d56581e50a1450d710609897332.tar.gz |
Perform tilde expansion on file path config values. #589
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 3fa6449..75da20f 100644 --- a/coverage/config.py +++ b/coverage/config.py @@ -440,4 +440,10 @@ def read_coverage_config(config_file, **kwargs): # 4) from constructor arguments: config.from_args(**kwargs) + # Once all the config has been collected, there's a little post-processing + # to do. + config.data_file = os.path.expanduser(config.data_file) + config.html_dir = os.path.expanduser(config.html_dir) + config.xml_output = os.path.expanduser(config.xml_output) + return config_file, config |