Mercurial > repos > guerler > springsuite
comparison planemo/lib/python3.7/site-packages/pip/__main__.py @ 1:56ad4e20f292 draft
"planemo upload commit 6eee67778febed82ddd413c3ca40b3183a3898f1"
author | guerler |
---|---|
date | Fri, 31 Jul 2020 00:32:28 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:d30785e31577 | 1:56ad4e20f292 |
---|---|
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 # isort:skip # noqa | |
17 | |
18 if __name__ == '__main__': | |
19 sys.exit(_main()) |