Fix regression related to --embed support
authorDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Thu, 14 May 2009 12:27:24 +0000 (14:27 +0200)
committerDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Thu, 14 May 2009 12:27:24 +0000 (14:27 +0200)
Cython/Compiler/ModuleNode.py

index ed80ae1ceb7db837cd7829529222dfa42610c3f7..802cc09bb2b7916dd3b7c4c09b473d614edc7290 100644 (file)
@@ -56,8 +56,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
         else:
             env.doc = self.doc
         env.directives = self.directives
-        if Options.embed:
-            self.__main__cname = env.intern_identifier(EncodedString("__main__"))
+        self.__main__cname = env.intern_identifier(EncodedString("__main__"))
         self.body.analyse_declarations(env)
     
     def process_implementation(self, options, result):