From: Robert Bradshaw Date: Fri, 15 Jan 2010 07:29:33 +0000 (-0800) Subject: Allow as well as "include_file" X-Git-Tag: 0.13.beta0~353^2~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9b973f301a8920a3c1bf476e6a174c7a8f900bb1;p=cython.git Allow as well as "include_file" --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 5a45ad71..45d6c82e 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -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("")