![](https://secure.gravatar.com/avatar/51a8ba68ff01e6c79003d3042a3279a8.jpg?s=120&d=mm&r=g)
28 Apr
2022
28 Apr
'22
4:21 a.m.
On 27. 04. 22 20:45, Barry wrote:
On 27 Apr 2022, at 17:22, Victor Stinner <vstinner@python.org> wrote:
Ok, you changed my mind and I added PYTHONDONTADDPATH0=1 env var. Example:
Maybe the env var say what it is not adding rather then where it adds it. PYTHONDONTADDPWD=1
But it is not "just" the PWD. In the case of shebangs, it's actually the script's directory. E.g. a script in /usr/bin/ normally has /usr/bin/ in sys.path (which is not desired, hence we (Fedora) would probably add the -P flag to default shebangs for programs in /usr/bin/). -- Miro Hrončok -- Phone: +420777974800 IRC: mhroncok