From 9969cce177f46558ca18f11698b57f94b2b02fd7 Mon Sep 17 00:00:00 2001 From: Safia Abdalla Date: Tue, 15 Sep 2015 10:17:44 -0700 Subject: [PATCH] Added rstrip on notebook_dir to resolve #411 --- notebook/notebookapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebook/notebookapp.py b/notebook/notebookapp.py index 8b8facceb..b1a62df61 100644 --- a/notebook/notebookapp.py +++ b/notebook/notebookapp.py @@ -793,7 +793,7 @@ class NotebookApp(JupyterApp): # anything that comes from the config dirs. c = Config() if os.path.isdir(f): - c.NotebookApp.notebook_dir = f + c.NotebookApp.notebook_dir = f.rstrip(os.sep) elif os.path.isfile(f): c.NotebookApp.file_to_run = f self.update_config(c)