summaryrefslogtreecommitdiff
path: root/coverage/control.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-12-23 21:57:09 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-12-23 21:57:09 -0500
commitfa62e0238a631ce0d1894ebe6311bd7c2aee0298 (patch)
tree78246116c317076fc0c32e09a2c48486b4e926e8 /coverage/control.py
parent748cb493c6cef5d72fede01a57cc22c3843c9393 (diff)
downloadpython-coveragepy-git-fa62e0238a631ce0d1894ebe6311bd7c2aee0298.tar.gz
process_startup is a better name for the new function.
Diffstat (limited to 'coverage/control.py')
-rw-r--r--coverage/control.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/coverage/control.py b/coverage/control.py
index 4acef710..415df277 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -373,11 +373,16 @@ class coverage(object):
return info
-def measure_process():
- """Called at Python startup time to perhaps measure coverage.
+def process_startup():
+ """Call this at Python startup to perhaps measure coverage.
+
+ To invoke this when Python starts, you can create a .pth file in your
+ Python installation containing this::
+
+ import coverage; coverage.process_startup()
If the environment variable COVERAGE_PROCESS_START is defined, coverage
- measurement is started, and the value of the variable is the data file
+ measurement is started. The value of the variable is the data file
prefix to use.
"""