Skip to content

Commit

Permalink
fixes jupyterlab#7264: use default app_dir when it is empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
telamonian committed Sep 26, 2019
1 parent bb21bc7 commit 81f10bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jupyterlab/commands.py
Expand Up @@ -302,6 +302,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')
Expand Down

0 comments on commit 81f10bd

Please sign in to comment.