expose paths as absolute to web api

This commit is contained in:
Lincoln Stein 2023-07-17 07:29:26 -04:00
parent 107ca6bf47
commit 3fba262c94

View File

@ -568,7 +568,7 @@ class ModelManager(object):
model_type=cur_model_type, model_type=cur_model_type,
) )
# expose paths as absolute # expose paths as absolute to help web UI
if path := model_dict.get('path'): if path := model_dict.get('path'):
model_dict['path'] = str(self.app_config.root_path / path) model_dict['path'] = str(self.app_config.root_path / path)
models.append(model_dict) models.append(model_dict)