1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Make main even simpler

This commit is contained in:
Matthew Iversen 2014-02-07 03:41:05 +11:00
parent 2e8f1917c8
commit 777953777e

View file

@ -1,16 +1,4 @@
import os
import sys
def run_main():
# Put the pip relative to this file first on sys.path so that it would be
# run with first priority.
base = os.path.dirname(
os.path.dirname(os.path.abspath(__file__))
)
sys.path.insert(0, base)
if __name__ == '__main__':
import sys
import pip
sys.exit(pip.main())
if __name__ == '__main__':
run_main()