Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove reference to DEFAULT_STATIC_FILES_PATH #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions sparqlkernel/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,9 @@ def start(self):

# Install the custom css
self.log.info('Installing CSS')
if self.user:
# Use the ~/.jupyter/custom dir
import jupyter_core
destd = os.path.join( jupyter_core.paths.jupyter_config_dir(),'custom')
else:
# Use the system custom dir
import notebook
destd = os.path.join( notebook.DEFAULT_STATIC_FILES_PATH, 'custom' )
# Use the ~/.jupyter/custom dir
import jupyter_core
destd = os.path.join( jupyter_core.paths.jupyter_config_dir(),'custom')

self.log.info('Installing CSS into %s', destd)
install_custom_css( destd, PKGNAME )
Expand Down Expand Up @@ -237,8 +232,7 @@ def start(self):
self.log.info('Removing CSS')
import jupyter_core
import notebook
cssd = ( os.path.join(jupyter_core.paths.jupyter_config_dir(),'custom'),
os.path.join(notebook.DEFAULT_STATIC_FILES_PATH,'custom') )
cssd = ( os.path.join(jupyter_core.paths.jupyter_config_dir(),'custom') )
for destd in cssd:
if remove_custom_css( destd, PKGNAME ):
self.log.info('Removed CSS from %s', destd)