Patch setup:install_jupyter_root to respect the root param

This commit is contained in:
Gordon Ball 2016-11-03 14:27:57 +01:00
parent af769daa62
commit 5f7bd01e0b

View file

@ -104,6 +104,10 @@ def install_jupyter_hook(prefix=None, root=None):
print(' root: {0!r}'.format(root))
print(' prefix: {0!r}'.format(prefix))
print(' as user: {0}'.format(user))
if root and prefix:
# os.path.join isn't used since prefix is probably absolute
prefix = root + prefix
print(' combined prefix {0!r}'.format(prefix))
KernelSpecManager().install_kernel_spec(
d, 'xonsh', user=user, replace=True, prefix=prefix)