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

Side by Side Diff: appengine/components/components/ereporter2/template.py

Issue 2013943002: Changing license header, again! (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: Fixed third parties Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 # Copyright 2013 The LUCI Authors. All rights reserved. 1 # Copyright 2013 The LUCI Authors. All rights reserved.
2 # Use of this source code is governed by the Apache v2.0 license that can be 2 # Use of this source code is governed under the Apache License, Version 2.0
3 # found in the LICENSE file. 3 # that can be found in the LICENSE file.
4 4
5 import os 5 import os
6 6
7 from components import template 7 from components import template
8 8
9 ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) 9 ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
10 10
11 11
12 def bootstrap(): 12 def bootstrap():
13 template.bootstrap({'ereporter2': os.path.join(ROOT_DIR, 'templates')}) 13 template.bootstrap({'ereporter2': os.path.join(ROOT_DIR, 'templates')})
14 14
15 15
16 def render(name, params=None): 16 def render(name, params=None):
17 """Shorthand to render a template.""" 17 """Shorthand to render a template."""
18 return template.render(name, params) 18 return template.render(name, params)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698