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:
parent
2e8f1917c8
commit
777953777e
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue