Added Includes to back of include path in Main.Context
authorDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Sat, 26 Jul 2008 15:12:55 +0000 (17:12 +0200)
committerDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Sat, 26 Jul 2008 15:12:55 +0000 (17:12 +0200)
Cython/Compiler/Main.py

index 6ee485aed33bd03307be26c79d919a23d978c236..4c4a0043a9d8c53895b64fd1599cd31bbf69060c 100755 (executable)
@@ -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!="":