diff options
| author | Shubham Saini <shubham6405@gmail.com> | 2018-12-11 10:01:23 +0000 |
|---|---|---|
| committer | Shubham Saini <shubham6405@gmail.com> | 2018-12-11 10:01:23 +0000 |
| commit | 68df54d6629ec019142eb149dd037774f2d11e7c (patch) | |
| tree | 345bc22d46b4e01a4ba8303b94278952a4ed2b9e /venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/__main__.py | |
First commit
Diffstat (limited to 'venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/__main__.py')
| -rw-r--r-- | venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/__main__.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/__main__.py b/venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/__main__.py new file mode 100644 index 0000000..a128ee3 --- /dev/null +++ b/venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/__main__.py | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | from __future__ import absolute_import | ||
| 2 | |||
| 3 | import os | ||
| 4 | import sys | ||
| 5 | |||
| 6 | # If we are running from a wheel, add the wheel to sys.path | ||
| 7 | # This allows the usage python pip-*.whl/pip install pip-*.whl | ||
| 8 | if __package__ == '': | ||
| 9 | # __file__ is pip-*.whl/pip/__main__.py | ||
| 10 | # first dirname call strips of '/__main__.py', second strips off '/pip' | ||
| 11 | # Resulting path is the name of the wheel itself | ||
| 12 | # Add that to sys.path so we can import pip | ||
| 13 | path = os.path.dirname(os.path.dirname(__file__)) | ||
| 14 | sys.path.insert(0, path) | ||
| 15 | |||
| 16 | from pip._internal import main as _main # noqa | ||
| 17 | |||
| 18 | if __name__ == '__main__': | ||
| 19 | sys.exit(_main()) | ||
