]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-113039: Avoid using leading dots in the include path for frozen getpath.py (GH...
authorItamar Oren <itamarost@gmail.com>
Mon, 18 Dec 2023 17:04:40 +0000 (09:04 -0800)
committerGitHub <noreply@github.com>
Mon, 18 Dec 2023 17:04:40 +0000 (17:04 +0000)
Modules/getpath.c
PCbuild/pythoncore.vcxproj

index afa9273ebc59b74c4ea180b673506d9b8f81d7b3..a3c8fc269d1c3cf6d3910d19bc128230d514671d 100644 (file)
@@ -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) \
index 90aa8cf28f8c5d5a08027b7e558faf100d7c0630..c90ad1a3592f675d51636c3550ac8cc6fad559c9 100644 (file)
         PLATLIBDIR="DLLs";
         %(PreprocessorDefinitions)
       </PreprocessorDefinitions>
+      <AdditionalIncludeDirectories>$(PySourcePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
     </ClCompile>
   </ItemGroup>
   <ItemGroup>