avoid python2.727

This commit is contained in:
Martin Diehl 2018-11-16 09:09:36 +01:00
parent a3647cc587
commit 3d0cd55bad
1 changed files with 1 additions and 1 deletions

View File

@ -4,5 +4,5 @@ if [ $1x != 3to2x ]; then
find . -name '*.py' -type f | xargs sed -i 's/usr\/bin\/env python2.7/usr\/bin\/env python/g' find . -name '*.py' -type f | xargs sed -i 's/usr\/bin\/env python2.7/usr\/bin\/env python/g'
else else
echo 'python to python2.7' echo 'python to python2.7'
find . -name '*.py' -type f | xargs sed -i 's/usr\/bin\/env python/usr\/bin\/env python2.7/g' find . -name '*.py' -type f | xargs sed -i '/2.7/! s/usr\/bin\/env python/usr\/bin\/env python2.7/g'
fi fi