summaryrefslogtreecommitdiff
path: root/coverage/config.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-11-28 16:17:35 -0500
committerNed Batchelder <ned@nedbatchelder.com>2019-11-28 16:17:35 -0500
commit5901967e95ae72ec2b5be05bc08e1924e08a604b (patch)
treec4cef786d1a0d9f596b3545111ddae2f8f14ff25 /coverage/config.py
parent4e3e44bcea08674219e2ed16617633a562763f67 (diff)
downloadpython-coveragepy-git-5901967e95ae72ec2b5be05bc08e1924e08a604b.tar.gz
Don't do vars and users in abs_file
It meant file names could be incorrectly expanded.
Diffstat (limited to 'coverage/config.py')
-rw-r--r--coverage/config.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/coverage/config.py b/coverage/config.py
index 62f281ad..b8789fbf 100644
--- a/coverage/config.py
+++ b/coverage/config.py
@@ -534,5 +534,6 @@ def read_coverage_config(config_file, **kwargs):
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)
+ config.paths = {k: [os.path.expanduser(f) for f in v] for k, v in config.paths.items()}
return config