Show More
@@ -3,7 +3,7 b'' | |||||
3 | Authors : MinRK, gregcaporaso, dannystaple |
|
3 | Authors : MinRK, gregcaporaso, dannystaple | |
4 | """ |
|
4 | """ | |
5 | from os.path import exists, isfile, splitext, abspath, join, isdir |
|
5 | from os.path import exists, isfile, splitext, abspath, join, isdir | |
6 | from os import walk, sep |
|
6 | from os import walk, sep, fsdecode | |
7 |
|
7 | |||
8 | from IPython.core.display import DisplayObject |
|
8 | from IPython.core.display import DisplayObject | |
9 |
|
9 | |||
@@ -334,7 +334,7 b' class FileLink(object):' | |||||
334 | if isdir(path): |
|
334 | if isdir(path): | |
335 | raise ValueError("Cannot display a directory using FileLink. " |
|
335 | raise ValueError("Cannot display a directory using FileLink. " | |
336 | "Use FileLinks to display '%s'." % path) |
|
336 | "Use FileLinks to display '%s'." % path) | |
337 | self.path = path |
|
337 | self.path = fsdecode(path) | |
338 | self.url_prefix = url_prefix |
|
338 | self.url_prefix = url_prefix | |
339 | self.result_html_prefix = result_html_prefix |
|
339 | self.result_html_prefix = result_html_prefix | |
340 | self.result_html_suffix = result_html_suffix |
|
340 | self.result_html_suffix = result_html_suffix |
General Comments 0
You need to be logged in to leave comments.
Login now