From 957e1324dd8c3594efd6c1fef6e47519b6fe1e34 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Thu, 17 Feb 2011 18:04:16 -0800 Subject: [PATCH] module_is_name should not be static so that cython freeze can access it --- Cython/Compiler/ModuleNode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 9ca919b7..72721b6a 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -272,7 +272,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): code = globalstate['before_global_var'] code.putln('#define __Pyx_MODULE_NAME "%s"' % self.full_module_name) - code.putln("static int %s%s = 0;" % (Naming.module_is_main, self.full_module_name.replace('.', '__'))) + code.putln("int %s%s = 0;" % (Naming.module_is_main, self.full_module_name.replace('.', '__'))) code.putln("") code.putln("/* Implementation of %s */" % env.qualified_name) -- 2.26.2