##// END OF EJS Templates
Merge pull request #4546 from minrk/not-in-dir-warning...
Matthias Bussonnier -
r13643:29626775 merge
parent child Browse files
Show More
@@ -715,14 +715,15 b' class NotebookApp(BaseIPythonApplication):'
715
715
716 nbdir = os.path.abspath(self.notebook_manager.notebook_dir)
716 nbdir = os.path.abspath(self.notebook_manager.notebook_dir)
717 f = self.file_to_run
717 f = self.file_to_run
718 if f and f.startswith(nbdir):
718 if f:
719 f = f[len(nbdir):]
719 if f.startswith(nbdir):
720 else:
720 f = f[len(nbdir):]
721 self.log.warn(
721 else:
722 "Probably won't be able to open notebook %s "
722 self.log.warn(
723 "because it is not in notebook_dir %s",
723 "Probably won't be able to open notebook %s "
724 f, nbdir,
724 "because it is not in notebook_dir %s",
725 )
725 f, nbdir,
726 )
726
727
727 if os.path.isfile(self.file_to_run):
728 if os.path.isfile(self.file_to_run):
728 url = url_path_join('notebooks', f)
729 url = url_path_join('notebooks', f)
General Comments 0
You need to be logged in to leave comments. Login now