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 <rep...@bugs.python.org> <https://bugs.python.org/issue31542> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com