diff options
author | Robert Bradshaw <robertwb@gmail.com> | 2014-08-14 21:06:50 -0700 |
---|---|---|
committer | Robert Bradshaw <robertwb@gmail.com> | 2014-08-14 21:06:50 -0700 |
commit | 4734e2d328c06a55ff51a2fdf0cb3d2918e1fbd5 (patch) | |
tree | b1e2d350fe971b5ba32ccedc0cbc9bd3d7250c20 /Cython/Compiler/ModuleNode.py | |
parent | 9ebc365050d15f1bc014ea7e238e182e85679da9 (diff) | |
download | cython-4734e2d328c06a55ff51a2fdf0cb3d2918e1fbd5.tar.gz |
Rename var for clarity.
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r-- | Cython/Compiler/ModuleNode.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index bb476010e..51ae9dfc7 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -688,15 +688,15 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): full_module_path = path.join(*self.full_module_name.split('.')) module_abspath = path.splitext(path.abspath( self.compilation_source.source_desc.get_filenametable_entry() ))[0] - module_relpath = module_abspath[:-len(full_module_path)] + module_rootpath = module_abspath[:-len(full_module_path)] code.putln("") code.putln("static const char *%s[] = {" % Naming.filetable_cname) if code.globalstate.filename_list: for source_desc in code.globalstate.filename_list: file_abspath = path.abspath(source_desc.get_filenametable_entry()) - if file_abspath.startswith(module_relpath): - filename = file_abspath[len(module_relpath):] + if file_abspath.startswith(module_rootpath): + filename = file_abspath[len(module_rootpath):] else: filename = path.basename(file_abspath) escaped_filename = filename.replace("\\", "\\\\").replace('"', r'\"') |