Download lib/python3.11/unittest/__main__.py from michaelu0826/phantom_env: direct link, hf CLI and curl.
- Browser
- Download file 472 Bytes
-
https://huggingface.co/datasets/michaelu0826/phantom_env/resolve/main/lib/python3.11/unittest/__main__.py
- Command line
-
hf download hf://datasets/michaelu0826/phantom_env/lib/python3.11/unittest/__main__.py
-
curl -L -o __main__.py https://huggingface.co/datasets/michaelu0826/phantom_env/resolve/main/lib/python3.11/unittest/__main__.py
472 Bytes
| """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) | |