##// END OF EJS Templates
Use os.remove instead of shutil.rmtree if we try to remove a symbolic link...
Jason Grout -
Show More
@@ -149,7 +149,7 b' def install_nbextension(files, overwrite=False, symlink=False, ipython_dir=None,'
149 149 if overwrite and os.path.exists(dest):
150 150 if verbose >= 1:
151 151 print("removing %s" % dest)
152 if os.path.isdir(dest):
152 if os.path.isdir(dest) and not os.path.islink(dest):
153 153 shutil.rmtree(dest)
154 154 else:
155 155 os.remove(dest)
General Comments 0
You need to be logged in to leave comments. Login now