From d7bbe09016e4ea584e5bfd9bf8e62f08b4ab5efc Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 23 Dec 2009 21:57:09 -0500 Subject: process_startup is a better name for the new function. --- coverage/control.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'coverage/control.py') diff --git a/coverage/control.py b/coverage/control.py index 4acef71..415df27 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. """ -- cgit v1.2.1