Skip to content

Commit

Permalink
notebook: correctly specify JSROOT location for static pages
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Oct 31, 2019
1 parent ecb5970 commit 7656640
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main/src/nbmain.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,16 @@ static bool CreateJupyterConfig(string dest, string rootbin, string rootlib, str
out << "rootbin = '" << rootbin << "'" << endl;
out << "rootlib = '" << rootlib << "'" << endl;
#ifdef WIN32
out << "jsrootsys = '" << rootdata << "\\js\\" << "'" << endl;
string jsrootsys = rootdata + "\\js\\";
out << "os.environ['PYTHONPATH'] = '%s' % rootlib + ':' + os.getenv('PYTHONPATH', '')" << endl;
out << "os.environ['PATH'] = '%s:%s\\bin' % (rootbin,rootbin) + ':' + '%s' % rootlib + ':' + os.getenv('PATH', '')" << endl;
#else
out << "jsrootsys = '" << rootdata << "/js/" << "'" << endl;
string jsrootsys = rootdata + "/js/";
out << "os.environ['PYTHONPATH'] = '%s' % rootlib + ':' + os.getenv('PYTHONPATH', '')" << endl;
out << "os.environ['PATH'] = '%s:%s/bin' % (rootbin,rootbin) + ':' + os.getenv('PATH', '')" << endl;
out << "os.environ['LD_LIBRARY_PATH'] = '%s' % rootlib + ':' + os.getenv('LD_LIBRARY_PATH', '')" << endl;
#endif
out << "c.NotebookApp.extra_static_paths = ['%s'] % jsrootsys" << endl;
out << "c.NotebookApp.extra_static_paths = ['" << jsrootsys << "']" << endl;
out.close();
return true;
}
Expand Down

0 comments on commit 7656640

Please sign in to comment.