mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-18 11:55:46 +08:00
clarify with all in check_nbextension
This commit is contained in:
parent
475ac234b4
commit
e903297a15
@ -75,11 +75,7 @@ def check_nbextension(files, ipython_dir=None):
|
||||
# one file given, turn it into a list
|
||||
files = [files]
|
||||
|
||||
for file in files:
|
||||
if not os.path.exists(pjoin(nbext, file)):
|
||||
return False
|
||||
|
||||
return True
|
||||
return all(os.path.exists(pjoin(nbext, f)) for f in files)
|
||||
|
||||
|
||||
def install_nbextension(files, overwrite=False, symlink=False, ipython_dir=None, verbose=1):
|
||||
|
Loading…
Reference in New Issue
Block a user