Skip to content

Commit f47faa6

Browse files
committed
Ensure hook directory exists
If the VIRTUALENVWRAPPER_HOOK_DIR does not exist, create it before initializing the hooks.
1 parent ff1edc4 commit f47faa6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

virtualenvwrapper.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ function virtualenvwrapper_initialize {
288288
export VIRTUALENVWRAPPER_HOOK_DIR="$WORKON_HOME"
289289
fi
290290

291+
mkdir -p "$VIRTUALENVWRAPPER_HOOK_DIR"
292+
291293
virtualenvwrapper_run_hook "initialize"
292294

293295
virtualenvwrapper_setup_tab_completion

0 commit comments

Comments
 (0)