Update for app config (#1369)

fixes an issue with "cellxgene launch" which had a bad interaction between
command line parameters and config file parameters.
Now, the config files are applied first, followed by the parameters that
were provided in the command line.

There is also now a check that each of the config attributes is type checked.
This commit is contained in:
bmccandless
2020-04-08 15:44:56 -07:00
committed by GitHub
parent 1f94c71c22
commit d457988810
4 changed files with 85 additions and 18 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ def dataroot_test_index():
data += "<body><H1>Welcome to cellxgene</H1>"
config = current_app.app_config
locator = DataLocator(config.multi_dataset__dataroot, config=config)
locator = DataLocator(config.multi_dataset__dataroot, app_config=config)
datasets = []
for fname in locator.ls():
location = path_join(config.multi_dataset__dataroot, fname)