diff options
-rw-r--r-- | bashrc/node/laptop/virtualenv.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bashrc/node/laptop/virtualenv.sh b/bashrc/node/laptop/virtualenv.sh new file mode 100644 index 0000000..d0fe6a7 --- /dev/null +++ b/bashrc/node/laptop/virtualenv.sh @@ -0,0 +1,9 @@ +if hash "virtualenvwrapper.sh" 2>/dev/null; then + export WORKON_HOME=~/dev/python + + if [ -e ${WORKON_HOME} ]; then + mkdir -p $WORKON_HOME + fi + + source $(which virtualenvwrapper.sh) +fi |