small fix to actually use the module name extracting algo if no module name is provid...
authorStefan Behnel <scoder@users.berlios.de>
Thu, 5 Jun 2008 19:41:21 +0000 (21:41 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 5 Jun 2008 19:41:21 +0000 (21:41 +0200)
Cython/Compiler/Main.py

index e8437839d60af3c34188fcc43ea0de6c0a172372..66c02330c6efc96d14b4de03ed6cc57c5882e88b 100644 (file)
@@ -289,7 +289,7 @@ class Context:
             else:
                 c_suffix = ".c"
             result.c_file = Utils.replace_suffix(source, c_suffix)
-        module_name = full_module_name # self.extract_module_name(source, options)
+        module_name = full_module_name or self.extract_module_name(source, options)
         initial_pos = (source, 1, 0)
         scope = self.find_module(module_name, pos = initial_pos, need_pxd = 0)
         errors_occurred = False