blob: e5876f569b5fa8a1bc1be582e8ba7e433f3efa1c [file] [log] [blame]
Benjamin Petersonbed7d042009-07-19 21:01:52 +00001"""Main entry point"""
2
3import sys
4if sys.argv[0].endswith("__main__.py"):
Michael Foordd38e6e52012-09-28 15:14:37 +01005 import os.path
6 # We change sys.argv[0] to make help message more useful
7 # use executable without path, unquoted
8 # (it's just a hint anyway)
9 # (if you have spaces in your executable you get what you deserve!)
10 executable = os.path.basename(sys.executable)
11 sys.argv[0] = executable + " -m unittest"
12 del os
Benjamin Petersonbed7d042009-07-19 21:01:52 +000013
Benjamin Petersondccc1fc2010-03-22 00:15:53 +000014__unittest = True
15
Victor Stinnerd6debb22017-03-27 16:05:26 +020016from .main import main
Benjamin Petersondccc1fc2010-03-22 00:15:53 +000017
Benjamin Petersonbed7d042009-07-19 21:01:52 +000018main(module=None)