Skip to content

Commit 556584f

Browse files
committed
Test for existance of path file was broken, used the wrong test.
1 parent 294cfcb commit 556584f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

virtualenvwrapper_bashrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ function add2virtualenv () {
379379
shift
380380
fi
381381

382-
if [ ! -x "$path_file" ]
382+
if [ ! -f "$path_file" ]
383383
then
384384
echo "import sys; sys.__plen = len(sys.path)" >> "$path_file"
385385
echo "import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)" >> "$path_file"

0 commit comments

Comments
 (0)