From c9561e1b87a376412378606a93af2eb2080d0530 Mon Sep 17 00:00:00 2001 From: Sebastian Wiesner Date: Thu, 12 Apr 2012 13:06:37 +0200 Subject: [PATCH] Source virtualenvwrapper in python module --- modules/python/init.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/python/init.zsh b/modules/python/init.zsh index 0c181fdb..e9a74d47 100644 --- a/modules/python/init.zsh +++ b/modules/python/init.zsh @@ -3,6 +3,7 @@ # # Authors: # Sorin Ionescu +# Sebastian Wiesner # # Prepend PEP 370 per user site packages directory, which defaults to @@ -16,3 +17,8 @@ else manpath=($HOME/.local/{,share/}man(N) $manpath) fi +# Load virtualenvwrapper into the shell session. +if [[ -n "$WORKON_HOME" ]] && (( $+commands[virtualenvwrapper.sh] )); then + source "$commands[virtualenvwrapper.sh]" +fi +