1--- Misc/python-config.sh.in.orig 2018-07-13 21:07:16 UTC 2+++ Misc/python-config.sh.in 3@@ -15,7 +15,7 @@ fi 4 # Returns the actual prefix where this script was installed to. 5 installed_prefix () 6 { 7- RESULT=$(dirname $(cd $(dirname "$1") && pwd -P)) 8+ RESULT=$(dirname $(cd $(dirname $(realpath "$1")) && pwd -P)) 9 if which readlink >/dev/null 2>&1 ; then 10 if readlink -f "$RESULT" >/dev/null 2>&1; then 11 RESULT=$(readlink -f "$RESULT") 12