commit | e8022eaf599cd9fba8ec2557a1e17a82ab678104 | [log] [tgz] |
---|---|---|
author | dan sinclair <dsinclair@chromium.org> | Tue Oct 20 14:46:10 2020 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Tue Oct 20 14:46:10 2020 +0000 |
tree | a23d98a94ceeeeec7c43c376ef145e796e168ba6 | |
parent | e557087870b0db11f232ce5825f88d8037e10e7c [diff] |
Skip None paths when looking for modules Change-Id: I49fb38b56f868a730b622e20cf8d5781f13fe5e3 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/30580 Commit-Queue: dan sinclair <dsinclair@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
diff --git a/generator/generator_lib.py b/generator/generator_lib.py index 5e3734d..e3d46bd 100644 --- a/generator/generator_lib.py +++ b/generator/generator_lib.py
@@ -201,6 +201,10 @@ paths = set() for path in module_paths: + # Builtin/namespaced modules may return None for the file path. + if not path: + continue + path = os.path.abspath(path) if not path.startswith(root_dir):