Did I find the right examples for you? yes no

All Samples(9)  |  Call(0)  |  Derive(0)  |  Import(9)
Call this at Python startup to perhaps measure coverage.

If the environment variable COVERAGE_PROCESS_START is defined, coverage
measurement is started.  The value of the variable is the config file
to use.

There are two ways to configure your Python installation to invoke this
function when Python starts:

#. Create or append to sitecustomize.py to add these lines::(more...)

        def process_startup():
    """Call this at Python startup to perhaps measure coverage.

    If the environment variable COVERAGE_PROCESS_START is defined, coverage
    measurement is started.  The value of the variable is the config file
    to use.

    There are two ways to configure your Python installation to invoke this
    function when Python starts:

    #. Create or append to sitecustomize.py to add these lines::

        import coverage
        coverage.process_startup()

    #. Create a .pth file in your Python installation containing::

        import coverage; coverage.process_startup()

    """
    cps = os.environ.get("COVERAGE_PROCESS_START")
    if cps:
        cov = coverage(config_file=cps, auto_data=True)
        cov.start()
        cov._warn_no_data = False
        cov._warn_unimported_source = False
        


src/m/i/microblog-HEAD/flask/lib/python2.7/site-packages/coverage/__init__.py   microblog(Download)
from coverage.version import __version__, __url__
 
from coverage.control import coverage, process_startup
from coverage.data import CoverageData
from coverage.cmdline import main, CoverageScript

src/r/o/rolf-HEAD/ve/lib/python2.7/site-packages/coverage/__init__.py   rolf(Download)
    __url__ += "/" + __version__
 
from coverage.control import coverage, process_startup
from coverage.data import CoverageData
from coverage.cmdline import main, CoverageScript

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/coverage/__init__.py   antisocial(Download)
    __url__ += "/" + __version__
 
from coverage.control import coverage, process_startup
from coverage.data import CoverageData
from coverage.cmdline import main, CoverageScript

src/n/o/noc-0.7(3)/contrib/src/coverage/coverage/__init__.py   noc(Download)
    __url__ += "/" + __version__
 
from coverage.control import coverage, process_startup
from coverage.data import CoverageData
from coverage.cmdline import main, CoverageScript

src/n/u/nupic-linux64-HEAD/lib64/python2.6/site-packages/coverage/__init__.py   nupic-linux64(Download)
from coverage.version import __version__, __url__
 
from coverage.control import coverage, process_startup
from coverage.data import CoverageData
from coverage.cmdline import main, CoverageScript

src/c/o/coverage-3.7.1/coverage/__init__.py   coverage(Download)
from coverage.version import __version__, __url__
 
from coverage.control import coverage, process_startup
from coverage.data import CoverageData
from coverage.cmdline import main, CoverageScript

src/i/n/input-lib-HEAD/packages/coverage/coverage/__init__.py   input-lib(Download)
    __url__ += "/" + __version__
 
from coverage.control import coverage, process_startup
from coverage.data import CoverageData
from coverage.cmdline import main, CoverageScript

src/c/o/coveragepy-HEAD/coverage/__init__.py   coveragepy(Download)
from coverage.version import __version__, __url__
 
from coverage.control import coverage, process_startup
from coverage.data import CoverageData
from coverage.cmdline import main, CoverageScript

src/p/l/play-HEAD/coverage/__init__.py   play(Download)
    __url__ += "/" + __version__
 
from coverage.control import coverage, process_startup
from coverage.data import CoverageData
from coverage.cmdline import main, CoverageScript