11 lines
300 B
Plaintext
11 lines
300 B
Plaintext
export WORKON_HOME=~/python-envs
|
|
export VIRTUALENVWRAPPER_VIRTUALENV=/usr/bin/virtualenv
|
|
mkdir -p $WORKON_HOME
|
|
source /usr/share/virtualenvwrapper/virtualenvwrapper.sh
|
|
|
|
if [ -n "$VIRTUAL_ENV" ]; then
|
|
if [[ -f "$VIRTUAL_ENV/bin/activate" ]]; then
|
|
source $VIRTUAL_ENV/bin/activate;
|
|
fi
|
|
fi
|