提交 3327753d 编写于 作者: P Paul Moore

Merge pull request #1576 from pfmoore/executable_wheel

Modify __main__.py to allow running from wheel
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__ == '':
import os
path = os.path.dirname(os.path.dirname(__file__))
sys.path.insert(0, path)
import pip
if __name__ == '__main__':
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册