Absolute paths

This commit is contained in:
Jonathan Frederic 2013-10-25 22:02:43 +00:00
parent aeebaaf09d
commit 5871471c1f

View File

@ -35,7 +35,7 @@ def init_widget_js():
name = filename.rsplit('.', 1)[0]
if not (name == 'widget' or name == '__init__') and name.startswith('widget_'):
# Remove 'widget_' from the start of the name before compiling the path.
js_path = '../static/notebook/js/widgets/%s.js' % name[7:]
js_path = 'static/notebook/js/widgets/%s.js' % name[7:]
display(Javascript(data='$.getScript("%s");' % js_path))