Fix for extracting full module name out of full path name.
authorRobert Bradshaw <robertwb@math.washington.edu>
Sun, 8 Jun 2008 00:03:45 +0000 (17:03 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Sun, 8 Jun 2008 00:03:45 +0000 (17:03 -0700)
Sage compiles and -testall reports success.

Cython/Compiler/Main.py

index 8abeccfa869a02b295239b782c8b1d1525c4a782..8d8832ba1af69401c023a5941524fdf0834bdec8 100644 (file)
@@ -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,