Commits

Ned Batchelder  committed 6f087f0

debug sys now shows the path to the config file.

  • Participants
  • Parent commits 05d721c

Comments (0)

Files changed (3)

 Change history for Coverage.py
 ------------------------------
 
+Version 3.6b2
+-------------
+
+- ``debug sys`` now shows the configuration file path that was read.
+
+
 Version 3.6b1 -- 28 November 2012
 ---------------------------------
 

File coverage/config.py

     """
     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
         `filename` is a file name to read.
 
         """
+        self.config_files.append(filename)
+
         cp = HandyConfigParser()
         cp.read(filename)
 

File coverage/control.py

             ('cover_dir', self.cover_dir),
             ('pylib_dirs', self.pylib_dirs),
             ('tracer', self.collector.tracer_name()),
+            ('config_files', self.config.config_files),
             ('data_path', self.data.filename),
             ('python', sys.version.replace('\n', '')),
             ('platform', platform.platform()),