From 49877ec0c8562c688745b95830b2c0a6ed5d4207 2013-10-22 03:34:05 From: MinRK Date: 2013-10-22 03:34:05 Subject: [PATCH] don't relay notebook dir to kernel from command-line --- diff --git a/IPython/html/notebookapp.py b/IPython/html/notebookapp.py index 5c6b361..93cbe9f 100644 --- a/IPython/html/notebookapp.py +++ b/IPython/html/notebookapp.py @@ -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)