bpo-45582: Fix test_embed failure during a PGO build on Windows by neonene · Pull Request #30014 · python/cpython (original) (raw)
PGO-instrumented _testembed.exe
and getpath.py
often miscalculate the prefix path, when launched with all PYTHON*
envvars removed.
The new path calculation uses VPATH
, which is defined as "..\\.."
in pythoncore.vcxproj
. From PGO-instrumented folder, VPATH
needs to be "..\\..\\.."
to resolve prefix.