Ai
2 Star 0 Fork 0

chromium_develop/chromium_third_party_pycoverage

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
__main__.py 576 Bytes
一键复制 编辑 原始数据 按行查看 历史
李想 提交于 2022-08-16 16:21 +08:00 . chromium origin init
"""Be able to execute coverage.py by pointing Python at a working tree."""
import runpy, os
PKG = 'coverage'
try:
run_globals = runpy.run_module(PKG, run_name='__main__', alter_sys=True)
executed = os.path.splitext(os.path.basename(run_globals['__file__']))[0]
if executed != '__main__': # For Python 2.5 compatibility
raise ImportError(
'Incorrectly executed %s instead of __main__' % executed
)
except ImportError: # For Python 2.6 compatibility
runpy.run_module('%s.__main__' % PKG, run_name='__main__', alter_sys=True)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chromium_develop/chromium_third_party_pycoverage.git
git@gitee.com:chromium_develop/chromium_third_party_pycoverage.git
chromium_develop
chromium_third_party_pycoverage
chromium_third_party_pycoverage
master

搜索帮助