On 16Jun2017 06:40, Tim Chase <python.l...@tim.thechases.com> wrote:
At least within virtualenvwrapper (I'm not sure whether they come
with virtualenv proper), in my $WORKON_HOME and
$WORKON_HOME/$VIRTUALENV/bin directories, I have a bunch of pre* and
post* templates including preactivate and postactivate hooks in which
I can put various bash scripting.  I've only used them once or twice
and don't have an example readily at hand, but it seems would give you
what you're looking for.

And just for added data, I've just inspected the 'activate" script in my 3.6.1 virtualenv (which looks like it was made using virtualenv-3.5) and it has no hooks in the shell code, so Tim's stuff looks like it comes from virtualenvwrapper.

Cheers,
Cameron Simpson <c...@zip.com.au>
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to