Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 13 lines (13 sloc) 279 Bytes
#!/bin/zsh
for dir in */; do
if [[ ! -d $dir ]]; then
continue
fi
if [[ -e $dir/bin/python2 ]]; then
interpreter=python2
else
interpreter=python3
fi
find $dir -type l -delete
virtualenv -p /usr/local/bin/$interpreter $dir
done