Nathaniel Smith <[email protected]> added the comment:
Ah, yeah, I see:
~/t$ echo 'print("hi")' > re.py
~/t$ pip --version
pip 9.0.1 from
/home/njs/.user-python3.5-64bit/local/lib/python3.5/site-packages (python 3.5)
~/t$ python -m pip --version
hi
Traceback (most recent call last):
[...]
But if I create a sitecustomize.py or an io.py in the current directory
(knowing that 'import io' happens implicitly startup), then those *don't* seem
to get picked up by 'python -m pip' or 'python -c ...' or plain 'python'. I
guess the cwd doesn't get added to sys.path until after initial bootstrapping
is finished.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue33053>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com