From: Itamar Oren Date: Mon, 18 Dec 2023 17:04:40 +0000 (-0800) Subject: gh-113039: Avoid using leading dots in the include path for frozen getpath.py (GH... X-Git-Tag: v3.13.0a3~337 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2feec0fc7fd0b9caae7ab2e26e69311d3ed93e77;p=thirdparty%2FPython%2Fcpython.git gh-113039: Avoid using leading dots in the include path for frozen getpath.py (GH-113022) --- diff --git a/Modules/getpath.c b/Modules/getpath.c index afa9273ebc59..a3c8fc269d1c 100644 --- a/Modules/getpath.c +++ b/Modules/getpath.c @@ -22,7 +22,7 @@ #endif /* Reference the precompiled getpath.py */ -#include "../Python/frozen_modules/getpath.h" +#include "Python/frozen_modules/getpath.h" #if (!defined(PREFIX) || !defined(EXEC_PREFIX) \ || !defined(VERSION) || !defined(VPATH) \ diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj index 90aa8cf28f8c..c90ad1a3592f 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj @@ -120,6 +120,7 @@ PLATLIBDIR="DLLs"; %(PreprocessorDefinitions) + $(PySourcePath);%(AdditionalIncludeDirectories)