26 Oct
2011
26 Oct
'11
1:15 a.m.
Nick Coghlan <ncoghlan@...> 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