From 3d0cd55bad1059ddbe41a5e4b88f0dc223367787 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Fri, 16 Nov 2018 09:09:36 +0100 Subject: [PATCH] avoid python2.727 --- installation/patch/python2to3.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installation/patch/python2to3.sh b/installation/patch/python2to3.sh index 07eed0e1e..aa315b588 100755 --- a/installation/patch/python2to3.sh +++ b/installation/patch/python2to3.sh @@ -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' else 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