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 | bcab18da36f04fd7621f8e65ce75eb99969e19cf (patch) | |
tree | 06979a4d7bd4e609a8239b1c76f1f70813bdb903 /coverage/config.py | |
parent | 69eef8d89161f2419ab7d04ba41053d23a86b107 (diff) | |
download | python-coveragepy-git-bcab18da36f04fd7621f8e65ce75eb99969e19cf.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 3fa64495..75da20fd 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 |