From: Robert Bradshaw Date: Sun, 8 Jun 2008 00:03:45 +0000 (-0700) Subject: Fix for extracting full module name out of full path name. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6194c79e737bed42f33fb8300687649a643eb665;p=cython.git Fix for extracting full module name out of full path name. Sage compiles and -testall reports success. --- diff --git a/Cython/Compiler/Main.py b/Cython/Compiler/Main.py index 8abeccfa..8d8832ba 100644 --- a/Cython/Compiler/Main.py +++ b/Cython/Compiler/Main.py @@ -311,10 +311,10 @@ class Context: c_stat = os.stat(result.c_file) except EnvironmentError: pass - module_name = full_module_name or self.extract_module_name(source, options) + full_module_name = full_module_name or self.extract_module_name(source, options) source = FileSourceDescriptor(source) initial_pos = (source, 1, 0) - scope = self.find_module(module_name, pos = initial_pos, need_pxd = 0) + scope = self.find_module(full_module_name, pos = initial_pos, need_pxd = 0) errors_occurred = False try: tree = self.parse(source, scope, pxd = 0,