diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-28 20:24:23 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-28 20:24:23 -0500 |
commit | 0510a39ee0bf4d140a8afcb3de308d28c3096edf (patch) | |
tree | 432129e0710559433d06907b0a047ba77f64b9cb /coverage/control.py | |
parent | ee0ce4bfe5c5ac0309edd0967bc888340967901c (diff) | |
download | python-coveragepy-0510a39ee0bf4d140a8afcb3de308d28c3096edf.tar.gz |
Add data_file to the .coveragerc file.
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/coverage/control.py b/coverage/control.py index 121f52b..7767854 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -68,7 +68,8 @@ class coverage(object): self.config.from_file(config_file) self.config.from_environment('COVERAGE_OPTIONS') self.config.from_args( - cover_pylib=cover_pylib, timid=timid, branch=branch + data_file=data_file, cover_pylib=cover_pylib, timid=timid, + branch=branch ) self.auto_data = auto_data @@ -92,7 +93,7 @@ class coverage(object): data_suffix = None self.data = CoverageData( - basename=data_file, suffix=data_suffix, + basename=self.config.data_file, suffix=data_suffix, collector="coverage v%s" % __version__ ) |