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

Side by Side Diff: mojo/public/tools/bindings/pylib/mojom/generate/template_expander.py

Issue 2471733003: Update or remove any remaining references to viewvc/blink. (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # Based on: 5 # Based on third_party/WebKit/Source/build/scripts/template_expander.py.
6 # http://src.chromium.org/viewvc/blink/trunk/Source/build/scripts/template_expan der.py
7 6
8 import imp 7 import imp
9 import os.path 8 import os.path
10 import sys 9 import sys
11 10
12 # Disable lint check for finding modules: 11 # Disable lint check for finding modules:
13 # pylint: disable=F0401 12 # pylint: disable=F0401
14 13
15 def _GetDirAbove(dirname): 14 def _GetDirAbove(dirname):
16 """Returns the directory "above" this file containing |dirname| (which must 15 """Returns the directory "above" this file containing |dirname| (which must
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 generator = module.Generator(None) 58 generator = module.Generator(None)
60 jinja_env = jinja2.Environment(loader=jinja2.FileSystemLoader([os.path.join( 59 jinja_env = jinja2.Environment(loader=jinja2.FileSystemLoader([os.path.join(
61 os.path.dirname(module.__file__), generator.GetTemplatePrefix())])) 60 os.path.dirname(module.__file__), generator.GetTemplatePrefix())]))
62 jinja_env.filters.update(generator.GetFilters()) 61 jinja_env.filters.update(generator.GetFilters())
63 jinja_env.compile_templates( 62 jinja_env.compile_templates(
64 os.path.join(output_dir, "%s.zip" % generator.GetTemplatePrefix()), 63 os.path.join(output_dir, "%s.zip" % generator.GetTemplatePrefix()),
65 extensions=["tmpl"], 64 extensions=["tmpl"],
66 zip="stored", 65 zip="stored",
67 py_compile=True, 66 py_compile=True,
68 ignore_errors=False) 67 ignore_errors=False)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698