From e12c915cceddf874bb31480495fc435c1a0a7cf7 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 2 Dec 2012 11:49:05 -0500 Subject: debug sys now shows the path to the config file. --- coverage/config.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'coverage/config.py') diff --git a/coverage/config.py b/coverage/config.py index 8edd6c6..d8c40d2 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) -- cgit v1.2.1