Skip to content

Commit

Permalink
Fix dangling reference to get_template_paths()
Browse files Browse the repository at this point in the history
Use the existing property interface instead. Must have been missed when it got refactored.
  • Loading branch information
iromero91 authored and yuvipanda committed Feb 3, 2021
1 parent 5852762 commit 93cb401
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nbconvert/exporters/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ def resources_include_url(name):
# if that fails (for instance a binary file, png or ttf)
# we mimic jinja2
pieces = split_template_path(name)
searchpaths = self.get_template_paths()
for searchpath in searchpaths:
for searchpath in self.template_paths:
filename = os.path.join(searchpath, *pieces)
print(filename, os.path.exists(filename))
if os.path.exists(filename):
Expand Down

0 comments on commit 93cb401

Please sign in to comment.