forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JupyROOT] Install properly into CMAKE_INSTALL_PREFIX
The Jupyter config falls back to the CMAKE_INSTALL_PREFIX/js folder to find JSROOT if ROOTSYS is not set. This ensures installations in prefix directories to find the installed JSROOT libraries.
- Loading branch information
Showing
3 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import os | ||
if 'ROOTSYS' in os.environ: | ||
# Prefer using JSROOT from ROOTSYS if defined | ||
c.NotebookApp.extra_static_paths.append(os.path.join(os.environ['ROOTSYS'], 'js/')) | ||
else: | ||
# Fall back to CMAKE_INSTALL_PREFIX to find JSROOT | ||
c.NotebookApp.extra_static_paths.append(os.path.join("@CMAKE_INSTALL_PREFIX@", 'js/')) |