From 9b973f301a8920a3c1bf476e6a174c7a8f900bb1 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Thu, 14 Jan 2010 23:29:33 -0800 Subject: [PATCH] Allow as well as "include_file" --- Cython/Compiler/ModuleNode.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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("") -- 2.26.2