Skip to content

Instantly share code, notes, and snippets.

@showa-yojyo
Created October 27, 2014 17:36
Show Gist options
  • Save showa-yojyo/edd969e302c594a78716 to your computer and use it in GitHub Desktop.
Save showa-yojyo/edd969e302c594a78716 to your computer and use it in GitHub Desktop.
# \_\_main\_\_.py memo
## coverage
```
__main__.py => coverage.cmdline.main() => CoverageScript().command_line(argv)
```
## nose
```
__main__.py => nose.core.run_exit() => main() => TestProgram() (ctor)
```
## pip
```
__main__.py => runner.run() => .main() (function)
```
## pylint
```
__main__.py => pylint.run_pylint() => pylint.lint.Run(sys.argv[1:]).__init__() (ctor)
```
## venv
```
__main__.py => .main(args=None) (function)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment