virtualenv logo virtualenv: source

1 2 3 4 5 6 7 8 9 10
Notes

This is the contents of the my_activate file;

export PS1="(ACTIVATED)"

deactivate() {
    echo "pretending to deactivate"
}

To source it, you need to run;

source my_activate

Notice how we're doing something very simular when we start a virtual environment.

source venv/bin/activate