2009-07-19 18:01:52 -03:00
|
|
|
"""Main entry point"""
|
|
|
|
|
|
|
|
import sys
|
|
|
|
if sys.argv[0].endswith("__main__.py"):
|
2012-09-28 11:14:37 -03:00
|
|
|
import os.path
|
|
|
|
# We change sys.argv[0] to make help message more useful
|
|
|
|
# use executable without path, unquoted
|
|
|
|
# (it's just a hint anyway)
|
|
|
|
# (if you have spaces in your executable you get what you deserve!)
|
|
|
|
executable = os.path.basename(sys.executable)
|
|
|
|
sys.argv[0] = executable + " -m unittest"
|
|
|
|
del os
|
2009-07-19 18:01:52 -03:00
|
|
|
|
2010-03-21 21:15:53 -03:00
|
|
|
__unittest = True
|
|
|
|
|
2017-03-27 11:05:26 -03:00
|
|
|
from .main import main
|
2010-03-21 21:15:53 -03:00
|
|
|
|
2009-07-19 18:01:52 -03:00
|
|
|
main(module=None)
|