Skip to content

Commit bde7ba8

Browse files
committed
pep8 and test updates for previous commit
Change-Id: I6f66b373b5d00ccb25de727e8033d6b71e043f80
1 parent 06c8b3c commit bde7ba8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/test_project_mk.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ oneTimeSetUp() {
88
mkdir -p "$WORKON_HOME"
99
rm -rf "$PROJECT_HOME"
1010
mkdir -p "$PROJECT_HOME"
11+
export VIRTUALENVWRAPPER_HOOK_DIR="$WORKON_HOME/hooks"
1112
source "$test_dir/../virtualenvwrapper.sh"
1213
}
1314

virtualenvwrapper/project.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ def post_mkproject_source(args):
4444
#
4545
# Run user-provided scripts
4646
#
47-
[ -f "$VIRTUALENVWRAPPER_HOOK_DIR/postmkproject" ] && source "$VIRTUALENVWRAPPER_HOOK_DIR/postmkproject"
47+
[ -f "$VIRTUALENVWRAPPER_HOOK_DIR/postmkproject" ] && \
48+
source "$VIRTUALENVWRAPPER_HOOK_DIR/postmkproject"
4849
"""
4950

5051

0 commit comments

Comments
 (0)