From c52bf9067573a1983e4485c1ad4e5883354002dd Mon Sep 17 00:00:00 2001 From: Max Klein Date: Thu, 26 Sep 2019 23:33:12 -0400 Subject: [PATCH] Backport PR #7268: fixes #7264: use default `app_dir` when `app_dir == ''` --- jupyterlab/commands.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jupyterlab/commands.py b/jupyterlab/commands.py index fec2ca990bf4..7ce9961e8f3c 100644 --- a/jupyterlab/commands.py +++ b/jupyterlab/commands.py @@ -297,6 +297,11 @@ def __init__(self, logger=None, core_config=None, **kwargs): kwargs['core_config'] = core_config if logger is not None: kwargs['logger'] = logger + + # use the default if app_dir is empty + if 'app_dir' in kwargs and not kwargs['app_dir']: + kwargs.pop('app_dir') + super(AppOptions, self).__init__(**kwargs) app_dir = Unicode(help='The application directory')