Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8106d4a

Browse files
committed
check debian package static data path for css files
the debian package puts its data into usr/share so check that path if the default one does not exist
1 parent 29a73cd commit 8106d4a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

converters/html.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ def header_body(self):
4444
static = os.path.join(path.get_ipython_package_dir(),
4545
'frontend', 'html', 'notebook', 'static',
4646
)
47+
# temporay debian package path until #2268 is fixed
48+
if not os.path.exists(static):
49+
static = "/usr/share/ipython/notebook/static/"
4750
here = os.path.split(os.path.realpath(__file__))[0]
4851
css = os.path.join(static, 'css')
4952
for sheet in [

0 commit comments

Comments
 (0)