diff --git a/install.py b/install.py index f955643a7..6d0ecfbf9 100644 --- a/install.py +++ b/install.py @@ -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) @@ -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') @@ -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) - - -