From ac56ffc693663fec31a037b8b2aacc1815d3610d 2015-01-22 20:41:27 From: Jason Grout Date: 2015-01-22 20:41:27 Subject: [PATCH] Don't overwrite the dest variable --- diff --git a/IPython/html/nbextensions.py b/IPython/html/nbextensions.py index 06fb0ca..4c4dbec 100644 --- a/IPython/html/nbextensions.py +++ b/IPython/html/nbextensions.py @@ -232,8 +232,8 @@ def install_nbextension(files, overwrite=False, symlink=False, user=False, prefi for file in files: src = pjoin(parent, file) # print("%r, %r" % (dest_dir, file)) - dest = pjoin(dest_dir, file) - _maybe_copy(src, dest, verbose) + dest_file = pjoin(dest_dir, file) + _maybe_copy(src, dest_file, verbose) else: src = path _maybe_copy(src, dest, verbose)