From 6194c79e737bed42f33fb8300687649a643eb665 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sat, 7 Jun 2008 17:03:45 -0700 Subject: [PATCH] Fix for extracting full module name out of full path name. Sage compiles and -testall reports success. --- Cython/Compiler/Main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.26.2