From c7db17a0ecfe913263a50f6216778e18d578a934 Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Sat, 26 Jul 2008 17:12:55 +0200 Subject: [PATCH] Added Includes to back of include path in Main.Context --- Cython/Compiler/Main.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Cython/Compiler/Main.py b/Cython/Compiler/Main.py index 6ee485ae..4c4a0043 100755 --- a/Cython/Compiler/Main.py +++ b/Cython/Compiler/Main.py @@ -46,6 +46,13 @@ class Context: self.pyxs = {} self.include_directories = include_directories self.future_directives = set() + + import os.path + + standard_include_path = os.path.abspath( + os.path.join(os.path.dirname(__file__), '..', 'Includes')) + self.include_directories = include_directories + [standard_include_path] + def find_module(self, module_name, relative_to = None, pos = None, need_pxd = 1): @@ -613,6 +620,7 @@ def main(command_line = 0): else: options = CompilationOptions(default_options) sources = args + if options.show_version: sys.stderr.write("Cython version %s\n" % Version.version) if options.working_path!="": -- 2.26.2