diff --git a/Misc/python-config.sh.in b/Misc/python-config.sh.in index e0e048a0fac486..195c317ada3825 100644 --- a/Misc/python-config.sh.in +++ b/Misc/python-config.sh.in @@ -30,7 +30,7 @@ installed_prefix () # Since we don't know where the output from this script will end up # we keep all paths in Windows-land since MSYS2 can handle that # while native tools can't handle paths in MSYS2-land. - if [ "$OSTYPE" = "msys" ]; then + if [ "$OSTYPE" = "cygwin" ] || [ "$OSTYPE" = "msys" ] ; then RESULT=$(cd "$RESULT" && pwd -W) fi echo $RESULT