提交 96b82f0a 编写于 作者: L Lucas Meneghel Rodrigues

Merge pull request #292 from ruda/main_entry_point

 Run avocado when called by 'python -m avocado'
"""
Main entry point when called by 'python -m'.
"""
import sys
from avocado.cli.app import AvocadoApp
if sys.argv[0].endswith('__main__.py'):
sys.argv[0] = 'python -m avocado'
main = AvocadoApp()
main.run()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册