From: Stefan Behnel Date: Thu, 5 Jun 2008 19:41:21 +0000 (+0200) Subject: small fix to actually use the module name extracting algo if no module name is provid... X-Git-Tag: 0.9.8rc1~11^2~10^2~6^2~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=411ccbdfe48fc5b8e2d0511bb8dbc14a7cd8f877;p=cython.git small fix to actually use the module name extracting algo if no module name is provided by the user --- 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