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

in install.py, don't use the $PREFIX environment variable, since jupyter doesn't #492

Merged
merged 1 commit into from
Feb 25, 2016
Merged
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
13 changes: 3 additions & 10 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,9 @@ def recursive_overwrite(src, dest, ignore=None):
shutil.copyfile(src, dest)

#
# 1. Get the local configuration file path
# 1. Get the data directory, which will be in jupyter_path
#
data_dir = os.getenv('PREFIX', None)
if data_dir == None:
data_dir = jupyter_data_dir()
else:
data_dir = os.path.join(data_dir, 'share/jupyter')
data_dir = jupyter_data_dir()

print("Extensions and templates path: %s" % data_dir)

Expand All @@ -60,7 +56,7 @@ def recursive_overwrite(src, dest, ignore=None):
# Indiscriminately copy all files from the nbextensions, extensions and template directories
# Currently there is no other way, because there is no definition of a notebook extension package
#

# copy extensions to IPython extensions directory
src = 'extensions'
destination = os.path.join(data_dir, 'extensions')
Expand All @@ -78,6 +74,3 @@ def recursive_overwrite(src, dest, ignore=None):
destination = os.path.join(data_dir, 'nbextensions')
if debug is True: print("Install notebook extensions to %s" % destination)
recursive_overwrite(src, destination)