[Python-ideas] Draft PEP for virtualenv in the stdlib
Vinay Sajip
vinay_sajip at yahoo.co.uk
Wed Oct 26 03:15:39 CEST 2011
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?
Regards,
Vinay Sajip
More information about the Python-ideas
mailing list