Skip to content

Commit 6fd972b

Browse files
committed
fix template listing for python 2.4, which does not support the -m option with namespace packages
1 parent 17e145c commit 6fd972b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_project_templates.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ setUp () {
2828

2929
test_list_templates () {
3030
output=$(mkproject -h 2>&1)
31-
assertTrue "Did not find test template in \"$output\"" "echo \"$output\" | grep -q test"
31+
assertTrue "Did not find test template in \"$output\"" "echo \"$output\" | grep -q 'Creates a test file'"
3232
}
3333

3434
test_apply_template () {

virtualenvwrapper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ function mkproject_help {
802802
echo
803803
echo "Available project templates:"
804804
echo
805-
"$VIRTUALENVWRAPPER_PYTHON" -m virtualenvwrapper.hook_loader -l project.template
805+
"$VIRTUALENVWRAPPER_PYTHON" -c 'from virtualenvwrapper.hook_loader import main; main()' -l project.template
806806
}
807807

808808
# Create a new project directory and its associated virtualenv.

0 commit comments

Comments
 (0)