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.
for k in imports.keys():
if imports[k]['path'].endswith('.jinja'):
path = imports[k]['path']
if path.endswith('.jinja'):
continue
# 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
# the hierarchical packages.
if sep in normalized:

Loading…
Cancel
Save