From 5b1b34197a152d171dcab6528fcc1783900d9a96 Mon Sep 17 00:00:00 2001 From: AN Long Date: Wed, 20 Mar 2024 19:17:33 +0800 Subject: [PATCH] gh-115538: Remove PYTHONHOME's trailing slash in generated python.bat --- PCbuild/python.vcxproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PCbuild/python.vcxproj b/PCbuild/python.vcxproj index 4a99ffc677c287..f49b928e95168b 100644 --- a/PCbuild/python.vcxproj +++ b/PCbuild/python.vcxproj @@ -145,7 +145,7 @@ set PYTHONPATH=$(PySourcePath)Lib @rem and using it outside of that context is ill-advised. @echo Running $(Configuration)^|$(Platform) interpreter... @setlocal -@set PYTHONHOME=$(PySourcePath) +@set PYTHONHOME=$(PySourcePath.TrimEnd('\')) @"$(OutDir)$(PyExeName)$(PyDebugExt).exe" %* <_ExistingContent Condition="Exists('$(PySourcePath)python.bat')">$([System.IO.File]::ReadAllText('$(PySourcePath)python.bat'))