Explorar el Código

Merge pull request #7268 from telamonian/fix-build-app-dir

fixes #7264: use default `app_dir` when `app_dir == ''`
Max Klein hace 5 años
padre
commit
457223a302
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      jupyterlab/commands.py

+ 5 - 0
jupyterlab/commands.py

@@ -302,6 +302,11 @@ class AppOptions(HasTraits):
             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')