Allow <include_file> as well as "include_file"
authorRobert Bradshaw <robertwb@math.washington.edu>
Fri, 15 Jan 2010 07:29:33 +0000 (23:29 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Fri, 15 Jan 2010 07:29:33 +0000 (23:29 -0800)
Cython/Compiler/ModuleNode.py

index 5a45ad718ee6577e9747be9fd47cb3c47b6a56ee..45d6c82e7677982ede935eaec460504df21d6385 100644 (file)
@@ -616,7 +616,10 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
         includes = []
         for filename in env.include_files:
             # fake decoding of filenames to their original byte sequence
-            code.putln('#include "%s"' % filename)
+            if filename[0] == '<' and filename[-1] == '>':
+                code.putln('#include %s' % filename)
+            else:
+                code.putln('#include "%s"' % filename)
     
     def generate_filename_table(self, code):
         code.putln("")