[Python-ideas] Draft PEP for virtualenv in the stdlib

Barry Warsaw barry at python.org
Wed Oct 26 03:51:39 CEST 2011


On Oct 26, 2011, at 01:15 AM, Vinay Sajip wrote:

>Nick Coghlan <ncoghlan at ...> writes:
>> 
>> I'd actually prefer that we use the explicit "sys.prefix" and
>> "sys.venv_prefix" naming (with the latter set to None when not in a
>> virtual env) and possibly offer a convenience API somewhere that hides
>> the "sys.prefix if sys.venv_prefix is None else sys.venv_prefix"
>> dance.
>
>But why is that better than a site.venv_prefix which points to a venv if
>you're in one, and == sys.prefix if you're not?

I'm not sure why either <wink>, but I prefer the original suggestion, as Vinay
restates it here.

-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20111025/f7f448a3/attachment.pgp>


More information about the Python-ideas mailing list