Skip to content

Commit c3e69c9

Browse files
author
Arnaud Coomans
committed
Fix default template path
1 parent 64f8cde commit c3e69c9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

flask_autodoc/autodoc.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,11 @@ def html(self, template=None, group='all', groups=None, **context):
130130
if template:
131131
return render_template(template, autodoc=self.generate(group), **context)
132132
else:
133-
filename = os.path.dirname(__file__) + '/templates/autodoc_default.html'
133+
filename = os.path.join(
134+
os.path.dirname(__file__),
135+
'templates',
136+
'autodoc_default.html'
137+
)
134138
with open(filename) as file:
135139
content = file.read()
136140
with current_app.app_context():

0 commit comments

Comments
 (0)