From: Dag Sverre Seljebotn Date: Sat, 26 Jul 2008 15:12:55 +0000 (+0200) Subject: Added Includes to back of include path in Main.Context X-Git-Tag: 0.9.8.1~49^2~66 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c7db17a0ecfe913263a50f6216778e18d578a934;p=cython.git Added Includes to back of include path in Main.Context --- 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!="":