From 5acd843da4ad7f42a6fcacd93cd711b6b2c31cf2 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Fri, 4 Oct 2013 16:21:51 -0700 Subject: [PATCH] Fix importing of module files Make module files correctly be scanned for imports Change-Id: I3b1e5987d7d5f97cd4d569eb32f807e6bb89c58c Fixes: bug 1235507 --- update.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/update.py b/update.py index 189b1a57..008f810d 100755 --- a/update.py +++ b/update.py @@ -395,9 +395,8 @@ def _build_dependency_tree(): if segments: mod_name = _join_mod(*segments) root_mods[mod_name] = os.path.join(dirpath, filename) - else: - filepath = os.path.join(dirpath, filename) - file_paths.append((filepath, mod_name)) + filepath = os.path.join(dirpath, filename) + file_paths.append((filepath, mod_name)) # Analyze the individual files dependencies after we know exactly what the # modules are so that we can find those modules if a individual file # imports a module instead of a file.