Commit 6194c79e authored by Robert Bradshaw's avatar Robert Bradshaw

Fix for extracting full module name out of full path name.

Sage compiles and -testall reports success.
parent 2d9e5a65
...@@ -311,10 +311,10 @@ class Context: ...@@ -311,10 +311,10 @@ class Context:
c_stat = os.stat(result.c_file) c_stat = os.stat(result.c_file)
except EnvironmentError: except EnvironmentError:
pass 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) source = FileSourceDescriptor(source)
initial_pos = (source, 1, 0) 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 errors_occurred = False
try: try:
tree = self.parse(source, scope, pxd = 0, tree = self.parse(source, scope, pxd = 0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment