##// END OF EJS Templates
Fix starting notebook server with file/directory at command line....
Thomas Kluyver -
Show More
@@ -73,6 +73,7 b' from .services.sessions.sessionmanager import SessionManager'
73 73
74 74 from .base.handlers import AuthenticatedFileHandler, FileFindHandler
75 75
76 from IPython.config import Config
76 77 from IPython.config.application import catch_config_error, boolean_flag
77 78 from IPython.core.application import BaseIPythonApplication
78 79 from IPython.core.profiledir import ProfileDir
@@ -554,10 +555,12 b' class NotebookApp(BaseIPythonApplication):'
554 555
555 556 # Use config here, to ensure that it takes higher priority than
556 557 # anything that comes from the profile.
558 c = Config()
557 559 if os.path.isdir(f):
558 self.config.NotebookApp.notebook_dir = f
560 c.NotebookApp.notebook_dir = f
559 561 elif os.path.isfile(f):
560 self.config.NotebookApp.file_to_run = f
562 c.NotebookApp.file_to_run = f
563 self.update_config(c)
561 564
562 565 def init_kernel_argv(self):
563 566 """construct the kernel arguments"""
General Comments 0
You need to be logged in to leave comments. Login now