mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Patch setup:install_jupyter_root to respect the root param
This commit is contained in:
parent
af769daa62
commit
5f7bd01e0b
1 changed files with 4 additions and 0 deletions
4
setup.py
4
setup.py
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue