Skip to content

Commit

Permalink
Merge pull request #1851 from Tsubashi/eight
Browse files Browse the repository at this point in the history
Remove use of cwd
  • Loading branch information
Mikhail Sobolev committed Sep 17, 2015
2 parents ff5639e + 7bf40c5 commit 4f9f915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master/buildbot/status/web/base.py
Expand Up @@ -624,7 +624,7 @@ def createJinjaEnv(revlink=None, changecommentlink=None,
# See http://buildbot.net/trac/ticket/658
assert not hasattr(sys, "frozen"), 'Frozen config not supported with jinja (yet)'

all_loaders = [jinja2.FileSystemLoader(os.path.join(os.getcwd(), 'templates'))]
all_loaders = [jinja2.FileSystemLoader(os.path.join(basedir, 'templates'))]
if jinja_loaders:
all_loaders.extend(jinja_loaders)
all_loaders.append(jinja2.PackageLoader('buildbot.status.web', 'templates'))
Expand Down

0 comments on commit 4f9f915

Please sign in to comment.