1. Doug Hellmann
  2. virtualenvwrapper

Commits

Doug Hellmann  committed f47faa6

Ensure hook directory exists

If the VIRTUALENVWRAPPER_HOOK_DIR does not exist, create it
before initializing the hooks.

  • Participants
  • Parent commits ff1edc4
  • Branches master

Comments (0)

Files changed (1)

File virtualenvwrapper.sh

View file
         export VIRTUALENVWRAPPER_HOOK_DIR="$WORKON_HOME"
     fi
 
+    mkdir -p "$VIRTUALENVWRAPPER_HOOK_DIR"
+
     virtualenvwrapper_run_hook "initialize"
 
     virtualenvwrapper_setup_tab_completion