From c6091bcfe18bd3e32309118ea8716514af3b0336 Mon Sep 17 00:00:00 2001 From: Jim Barlow Date: Tue, 24 Mar 2015 22:36:13 -0700 Subject: [PATCH] Change python2 -> python3 for readlink() --- OCRmyPDF.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OCRmyPDF.sh b/OCRmyPDF.sh index 0cbd025a..8aa20b60 100755 --- a/OCRmyPDF.sh +++ b/OCRmyPDF.sh @@ -6,7 +6,7 @@ # Darwin/OS X has not evolved a proper readlink yet if [ $(uname) == "Darwin" ]; then function readlink() { - python -c 'import os,sys; print os.path.realpath(sys.argv[1])' "$2" + python3 -c 'import os,sys; print(os.path.realpath(sys.argv[1]))' "$2" } fi