Mercurial > piecrust2
changeset 1110:05fba0b8e21c
data: Use the root URL for the debugger assets.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 18 Feb 2018 20:33:45 -0800 |
parents | 6f26e83dfced |
children | 98c7dd6ea4ac |
files | piecrust/data/debug.py |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/data/debug.py Sun Feb 18 20:33:04 2018 -0800 +++ b/piecrust/data/debug.py Sun Feb 18 20:33:45 2018 -0800 @@ -79,8 +79,11 @@ print('</div>', file=output) - print('<script src="/__piecrust_static/piecrust-debug-info.js"></script>', - file=output) + root_url = page.app.config.get('site/root') + print( + '<script src="%s__piecrust_static/piecrust-debug-info.js"></script>' % + root_url, + file=output) def build_var_debug_info(data, var_path=None):