From 76cf126566b9505e83a52453df5d6a85dbf1bacd Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Fri, 20 Jul 2018 15:58:21 +0200 Subject: [PATCH] [skip sc] not really a patch but enables python (3) skipping syntax check as executable files normally only exist in processing and installation --- installation/patch/python2to3.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 installation/patch/python2to3.sh diff --git a/installation/patch/python2to3.sh b/installation/patch/python2to3.sh new file mode 100755 index 000000000..1d86b0ce7 --- /dev/null +++ b/installation/patch/python2to3.sh @@ -0,0 +1,8 @@ +#! /usr/bin/env bash +if [ $1x != 3to2x ]; then + echo 'python2.7 to python' + find . -name '*.py' | xargs sed -i 's/usr\/bin\/env python2.7/usr\/bin\/env python/g' +else + echo 'python to python2.7' + find . -name '*.py' | xargs sed -i 's/usr\/bin\/env python/usr\/bin\/env python2.7/g' +fi