Skip to content

Commit 5b35a17

Browse files
committed
Quoting arguments to expandpath to allow for spaces in the arguments.
--HG-- branch : fix_installing_requirements_after_cd
1 parent 185f5cf commit 5b35a17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

virtualenvwrapper.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function virtualenvwrapper_derive_workon_home {
108108
# - Removing extra slashes (e.g., when TMPDIR ends in a slash)
109109
# - Expanding variables (e.g., $foo)
110110
# - Converting ~s to complete paths (e.g., ~/ to /home/brian/ and ~arthur to /home/arthur)
111-
workon_home_dir=$(virtualenvwrapper_expandpath $workon_home_dir)
111+
workon_home_dir=$(virtualenvwrapper_expandpath "$workon_home_dir")
112112
fi
113113

114114
echo "$workon_home_dir"
@@ -352,7 +352,7 @@ function mkvirtualenv {
352352
-r)
353353
i=$(( $i + 1 ));
354354
requirements="${in_args[$i]}";
355-
requirements=$(virtualenvwrapper_expandpath $requirements);;
355+
requirements=$(virtualenvwrapper_expandpath "$requirements");;
356356
*)
357357
if [ ${#out_args} -gt 0 ]
358358
then

0 commit comments

Comments
 (0)