From 6ee29b4c72811f8c6d2cf9be2bc584477acc1be0 Mon Sep 17 00:00:00 2001 From: Paul Ivanov Date: Tue, 14 Feb 2012 14:26:31 -0800 Subject: [PATCH] be more explicit about how --browser value is used --- IPython/frontend/html/notebook/notebookapp.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/IPython/frontend/html/notebook/notebookapp.py b/IPython/frontend/html/notebook/notebookapp.py index bc0718e99..9ea35ac67 100644 --- a/IPython/frontend/html/notebook/notebookapp.py +++ b/IPython/frontend/html/notebook/notebookapp.py @@ -291,11 +291,11 @@ class NotebookApp(BaseIPythonApplication): """) browser = Unicode(u'', config=True, - help="""Specify which browser to use when opening the - notebook. If not specified, the default browser will be - determined by the `webbrowser` standard library module, - which allows setting of the BROWSER environment variable - to override it. + help="""Specify what command to use to invoke a web + browser when opening the notebook. If not specified, the + default browser will be determined by the `webbrowser` + standard library module, which allows setting of the + BROWSER environment variable to override it. """) read_only = Bool(False, config=True, @@ -441,7 +441,7 @@ class NotebookApp(BaseIPythonApplication): if self.open_browser: ip = self.ip or '127.0.0.1' - if len(self.browser) == 0: + if self.browser: browser = webbrowser.get() else: browser = webbrowser.get(self.browser)