Staging
v0.8.1
v0.8.1
Revision 521ed521317ffd385afaabdd889879e7cb7461df authored by Georg Brandl on 12 May 2013, 10:36:07 UTC, committed by Georg Brandl on 12 May 2013, 10:36:07 UTC
distutils.cfg when a venv is active.
1 parent b3bd624
__main__.py
"""Main entry point"""
import sys
if sys.argv[0].endswith("__main__.py"):
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
__unittest = True
from .main import main, TestProgram, USAGE_AS_MAIN
TestProgram.USAGE = USAGE_AS_MAIN
main(module=None)
Computing file changes ...