summaryrefslogtreecommitdiff
path: root/__main__.py
blob: f1f2b4f67759867506167345d16234381ca213f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt

"""Be able to execute coverage.py by pointing Python at a working tree."""

import runpy
import os

PKG = 'coverage'

run_globals = runpy.run_module(PKG, run_name='__main__', alter_sys=True)
executed = os.path.splitext(os.path.basename(run_globals['__file__']))[0]