mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
don't relay notebook dir to kernel from command-line
This commit is contained in:
parent
a2d731ff39
commit
18022a7db8
@ -500,7 +500,9 @@ class NotebookApp(BaseIPythonApplication):
|
||||
super(NotebookApp, self).parse_command_line(argv)
|
||||
|
||||
if self.extra_args:
|
||||
f = os.path.abspath(self.extra_args[0])
|
||||
arg0 = self.extra_args[0]
|
||||
f = os.path.abspath(arg0)
|
||||
self.argv.remove(arg0)
|
||||
if not os.path.exists(f):
|
||||
self.log.critical("No such file or directory: %s", f)
|
||||
self.exit(1)
|
||||
|
Loading…
Reference in New Issue
Block a user