don't relay notebook dir to kernel from command-line

This commit is contained in:
MinRK 2013-10-21 20:31:10 -07:00
parent a2d731ff39
commit 18022a7db8

View File

@ -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)