0
0
mirror of https://github.com/python/cpython.git synced 2024-11-24 08:52:25 +01:00
cpython/Lib/ensurepip/__main__.py
Igor Filatov 9adda0cdf8 bpo-31351: Set return code in ensurepip when pip fails (GH-3626)
Previously ensurepip would always report success, even if the
pip installation failed.
2017-09-21 20:07:45 +10:00

6 lines
88 B
Python

import ensurepip
import sys
if __name__ == "__main__":
sys.exit(ensurepip._main())