address cr comments

pull/141/head
vaikas-google 9 years ago
parent ad7c6b4cd8
commit f9d08f5b0d

@ -95,10 +95,11 @@ def process_imports(imports):
# Now build the hierarchical modules. # Now build the hierarchical modules.
for k in imports.keys(): for k in imports.keys():
if imports[k]['path'].endswith('.jinja'): path = imports[k]['path']
if path.endswith('.jinja'):
continue continue
# Normalize paths and trim .py extension, if any. # Normalize paths and trim .py extension, if any.
normalized = os.path.splitext(os.path.normpath(k))[0] normalized = os.path.splitext(os.path.normpath(path))[0]
# If this is actually a path and not an absolute name, split it and process # If this is actually a path and not an absolute name, split it and process
# the hierarchical packages. # the hierarchical packages.
if sep in normalized: if sep in normalized:

Loading…
Cancel
Save