aboutsummaryrefslogtreecommitdiff
path: root/Python/venv/Lib/site-packages/pip-19.0.3-py3.7.egg/pip/__main__.py
diff options
context:
space:
mode:
authorSyndamia <kami02882@gmail.com>2019-06-30 15:05:38 +0300
committerSyndamia <kami02882@gmail.com>2019-06-30 15:05:38 +0300
commita0addea2b7bbdac244420ec917c0f3c14c4c8831 (patch)
treea05310b0033f995dfd31b5795e7675aa382a18f3 /Python/venv/Lib/site-packages/pip-19.0.3-py3.7.egg/pip/__main__.py
parent0c7164435abda2e497957e195e6653f94f20135d (diff)
downloadSelf-learning-a0addea2b7bbdac244420ec917c0f3c14c4c8831.tar
Self-learning-a0addea2b7bbdac244420ec917c0f3c14c4c8831.tar.gz
Self-learning-a0addea2b7bbdac244420ec917c0f3c14c4c8831.zip
Added some of the stuff I have done while learning Python
Diffstat (limited to 'Python/venv/Lib/site-packages/pip-19.0.3-py3.7.egg/pip/__main__.py')
-rw-r--r--Python/venv/Lib/site-packages/pip-19.0.3-py3.7.egg/pip/__main__.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/Python/venv/Lib/site-packages/pip-19.0.3-py3.7.egg/pip/__main__.py b/Python/venv/Lib/site-packages/pip-19.0.3-py3.7.egg/pip/__main__.py
new file mode 100644
index 0000000..0c223f8
--- /dev/null
+++ b/Python/venv/Lib/site-packages/pip-19.0.3-py3.7.egg/pip/__main__.py
@@ -0,0 +1,19 @@
+from __future__ import absolute_import
+
+import os
+import sys
+
+# If we are running from a wheel, add the wheel to sys.path
+# This allows the usage python pip-*.whl/pip install pip-*.whl
+if __package__ == '':
+ # __file__ is pip-*.whl/pip/__main__.py
+ # first dirname call strips of '/__main__.py', second strips off '/pip'
+ # Resulting path is the name of the wheel itself
+ # Add that to sys.path so we can import pip
+ path = os.path.dirname(os.path.dirname(__file__))
+ sys.path.insert(0, path)
+
+from pip._internal import main as _main # isort:skip # noqa
+
+if __name__ == '__main__':
+ sys.exit(_main())