clang 20.0.0 (based on r547379) from build 12806354. Bug: http://b/379133546 Test: N/A Change-Id: I2eb8938af55d809de674be63cb30cf27e801862b Upstream-Commit: ad834e67b1105d15ef907f6255d4c96e8e733f57
19 lines
472 B
Python
19 lines
472 B
Python
"""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)
|