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