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 | c72bfe70f9f8ac6d573689798b364bd664b93444 (patch) | |
tree | d356597357f024c6e252c8fc47137b74e42b8bc2 /coverage/control.py | |
parent | 49ede2bdf54a12e4eaa9472785cc5544040c077a (diff) | |
download | python-coveragepy-git-c72bfe70f9f8ac6d573689798b364bd664b93444.tar.gz |
Add data_file to the .coveragerc file.
--HG--
branch : config
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 121f52b7..77678543 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__ ) |