Merge pull request #177 from minrk/string-types

handle _template_path being unicode on py2
Matthias Bussonnier 11 years ago
commit 92b9699338

@ -155,7 +155,7 @@ class NotebookWebApplication(web.Application):
"template_path",
ipython_app.template_file_path,
)
if isinstance(_template_path, str):
if isinstance(_template_path, py3compat.string_types):
_template_path = (_template_path,)
template_path = [os.path.expanduser(path) for path in _template_path]

Loading…
Cancel
Save