[New-bugs-announce] [issue31542] pth files in site-packages of venvs are executed twice
Antony Lee
report at bugs.python.org
Thu Sep 21 05:41:38 EDT 2017
New submission from Antony Lee:
All's in the title: "pth files in site-packages of venvs are executed twice". For example, the following code sample prints "1" twice.
python -mvenv /tmp/tmpenv
echo 'import os; print(1)' >/tmp/tmpenv/lib/python3.6/site-packages/foo.pth
source activate /tmp/tmpenv
python
This behavior is different from the one for a pth file in a non-venv site-packages (either the syswide prefix, or the user prefix), which is only executed once.
----------
components: Library (Lib)
messages: 302678
nosy: Antony.Lee
priority: normal
severity: normal
status: open
title: pth files in site-packages of venvs are executed twice
versions: Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31542>
_______________________________________
More information about the New-bugs-announce
mailing list