summaryrefslogtreecommitdiffstats
path: root/PCbuild
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2021-10-05 12:37:43 (GMT)
committerGitHub <noreply@github.com>2021-10-05 12:37:43 (GMT)
commit5146877623ebe8a2806411703b0de9c0aba179a1 (patch)
tree09351082bb64585fc180337338d0d6e25f3455e1 /PCbuild
parentde4052fe0633e3a053e66c8477f13677054d6ede (diff)
downloadcpython-5146877623ebe8a2806411703b0de9c0aba179a1.zip
cpython-5146877623ebe8a2806411703b0de9c0aba179a1.tar.gz
cpython-5146877623ebe8a2806411703b0de9c0aba179a1.tar.bz2
bpo-45375: Fix assertion failure due to searching for stdlib in unnormalised paths (GH-28735)
Diffstat (limited to 'PCbuild')
-rw-r--r--PCbuild/regen.targets4
1 files changed, 3 insertions, 1 deletions
diff --git a/PCbuild/regen.targets b/PCbuild/regen.targets
index 9492cff..c0bde1e 100644
--- a/PCbuild/regen.targets
+++ b/PCbuild/regen.targets
@@ -104,7 +104,9 @@
Condition="($(Platform) == 'Win32' or $(Platform) == 'x64') and
$(Configuration) != 'PGInstrument' and $(Configuration) != 'PGUpdate'">
<Message Text="Regenerate @(_TestFrozenOutputs->'%(Filename)%(Extension)', ' ')" Importance="high" />
- <Exec Command="$(PythonExe) Programs\freeze_test_frozenmain.py Programs/test_frozenmain.h"
+ <Exec Command='setlocal
+set PYTHONPATH=$(PySourcePath)Lib
+"$(PythonExe)" Programs\freeze_test_frozenmain.py Programs\test_frozenmain.h'
WorkingDirectory="$(PySourcePath)" />
</Target>