Customise the virtualenv `activate` script
Cameron Simpson
cs at zip.com.au
Fri Jun 16 19:39:45 EDT 2017
On 16Jun2017 06:40, Tim Chase <python.list at 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 <cs at zip.com.au>
More information about the Python-list
mailing list