Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Unified Diff: Source/bindings/scripts/unstable/code_generator_v8.py

Issue 182573002: IDL compiler: Filter files during pre-caching of templates (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/scripts/unstable/code_generator_v8.py
diff --git a/Source/bindings/scripts/unstable/code_generator_v8.py b/Source/bindings/scripts/unstable/code_generator_v8.py
index db7f560e74c32cc48e68914cd0025a71b42f0f84..2fd8fe722b68cff2fd792893172ed7dc56dca8d2 100644
--- a/Source/bindings/scripts/unstable/code_generator_v8.py
+++ b/Source/bindings/scripts/unstable/code_generator_v8.py
@@ -197,7 +197,10 @@ def main(argv):
# Cache templates
jinja_env = initialize_jinja_env(cache_dir)
- for template_filename in os.listdir(templates_dir):
+ template_filenames = [filename for filename in os.listdir(templates_dir)
+ # Skip .svn, directories, etc.
+ if filename.endswith(('.cpp', '.h'))]
+ for template_filename in template_filenames:
jinja_env.get_template(template_filename)
# Create a dummy file as output for the build system,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698