A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2015-February/138312.html below:

[Python-Dev] PEP 370 - per-user scripts directory on Windows

[Python-Dev] PEP 370 - per-user scripts directory on Windows [Python-Dev] PEP 370 - per-user scripts directory on WindowsVinay Sajip vinay_sajip at yahoo.co.uk
Sun Feb 15 20:23:49 CET 2015
Paul Moore <p.f.moore <at> gmail.com> writes:

> 2. It would be a nice, although extremely obscure, feature to be able
> to allow people who want to keep Python off their path to set
> VIRTUAL_ENV but *not* set PATH, so that py.exe does the right thing
> but there's *still* no python.exe on PATH. Limit the dependency on a
> single environment variable rather than two, in other words.

If this is the case, then your patch may not work if PATH isn't set. If a 
shebang is found in a script, it is processed in maybe_handle_shebang(), which 
means that your code to look in a venv won't be hit (though if you rely on the 
PATH being correctly set, then it will work as expected because the handling 
for e.g. /usr/bin/env python searches the PATH).

Regards,

Vinay Sajip

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4