diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-12-02 11:49:05 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-12-02 11:49:05 -0500 |
commit | 42a830ec1e505098ec8ddc96dd0c294cf46f84b7 (patch) | |
tree | 068012a246f2854e32c2ec7a1762978382ec3887 /coverage/config.py | |
parent | 8331c5bac292dc3be66d0ab091897642f50507c8 (diff) | |
download | python-coveragepy-git-42a830ec1e505098ec8ddc96dd0c294cf46f84b7.tar.gz |
debug sys now shows the path to the config file.
Diffstat (limited to 'coverage/config.py')
-rw-r--r-- | coverage/config.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/coverage/config.py b/coverage/config.py index 8edd6c65..d8c40d28 100644 --- a/coverage/config.py +++ b/coverage/config.py @@ -100,6 +100,9 @@ class CoverageConfig(object): """ def __init__(self): """Initialize the configuration attributes to their defaults.""" + # Metadata about the config. + self.config_files = [] + # Defaults for [run] self.branch = False self.cover_pylib = False @@ -154,6 +157,8 @@ class CoverageConfig(object): `filename` is a file name to read. """ + self.config_files.append(filename) + cp = HandyConfigParser() cp.read(filename) |