[New-bugs-announce] [issue31542] pth files in site-packages of venvs are executed twice
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
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)
title: pth files in site-packages of venvs are executed twice
versions: Python 3.6
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce