From 411ccbdfe48fc5b8e2d0511bb8dbc14a7cd8f877 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 5 Jun 2008 21:41:21 +0200 Subject: [PATCH] small fix to actually use the module name extracting algo if no module name is provided by the user --- Cython/Compiler/Main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Main.py b/Cython/Compiler/Main.py index e8437839..66c02330 100644 --- a/Cython/Compiler/Main.py +++ b/Cython/Compiler/Main.py @@ -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 -- 2.26.2