Commits

Anonymous committed a915c1a

Always djexit in djp to make sure the prompt is set correctly

Comments (0)

Files changed (1)

     [ -z "$1" ] && \
         echo "Usage: djp <project> [Django project]" 1>&2 && return 1
 
+    # Exit possible environment
+    djexit
+
     # Virtualenv
     [ -z "$PIP_VIRTUALENV_BASE" ] && PIP_VIRTUALENV_BASE=$DEFAULT_ROOT/virtualenvs
     if [ ! -d $PIP_VIRTUALENV_BASE/$1 ]; then