Skip to content

Commit

Permalink
Updates to nbconvert template
Browse files Browse the repository at this point in the history
  • Loading branch information
JWock82 committed Jul 12, 2023
1 parent 23f11c4 commit ab6da89
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ipycalc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ class ipycalcExporter(WebPDFExporter):
A custom PDF exporter for ipycalc.
"""

custom_template_name = 'ipycalc'
pkg_dir = os.path.dirname(__file__)
template_dir = os.path.join(pkg_dir, 'nbconvert_templates')

Expand All @@ -15,4 +14,4 @@ def extra_template_basedirs(self):
return super()._default_extra_template_basedirs() + [self.template_dir]

def _template_name_default(self):
return os.path.join(self.pkg_dir, self.custom_template_name)
return os.path.join(self.pkg_dir, self.template_dir)

0 comments on commit ab6da89

Please sign in to comment.