summaryrefslogtreecommitdiff
path: root/coverage/config.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-10-21 11:40:06 -0400
committerNed Batchelder <ned@nedbatchelder.com>2017-10-21 11:40:06 -0400
commitb208f521fc4f2d56581e50a1450d710609897332 (patch)
treedd31048b83bd195cd3f1ca8caf104281b33a4ffe /coverage/config.py
parent9b8a322c8e49e7e5373bda088e8cf03452f7823e (diff)
downloadpython-coveragepy-b208f521fc4f2d56581e50a1450d710609897332.tar.gz
Perform tilde expansion on file path config values. #589
Diffstat (limited to 'coverage/config.py')
-rw-r--r--coverage/config.py6
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