From 97de55acf4efe3c3ae2b5a955578cae71958dfe7 Mon Sep 17 00:00:00 2001 From: Jeroen Demeyer Date: Sun, 7 Feb 2016 17:07:54 +0100 Subject: [PATCH] Check sys.path for .pxi files too --- Cython/Compiler/Main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Main.py b/Cython/Compiler/Main.py index 65b3cd309a8..d4d0f788b9d 100644 --- a/Cython/Compiler/Main.py +++ b/Cython/Compiler/Main.py @@ -269,7 +269,7 @@ def find_include_file(self, filename, pos): # Search list of include directories for filename. # Reports an error and returns None if not found. path = self.search_include_directories(filename, "", pos, - include=True) + include=True, sys_path=True) if not path: error(pos, "'%s' not found" % filename) return path