Staging
v0.8.1
v0.8.1
Revision 8623e68ea856830e084839e1d726c1f5be727203 authored by Łukasz Langa on 10 February 2020, 19:08:24 UTC, committed by Łukasz Langa on 10 February 2020, 19:08:24 UTC
1 parent b086ea5
__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
main(module=None)
Computing file changes ...