Experiment with using absolute paths within model management

This commit is contained in:
Brandon Rising
2024-03-07 13:55:10 -05:00
committed by Brandon
parent 66f0ff5b13
commit e52274ecac
4 changed files with 5 additions and 6 deletions

View File

@ -137,8 +137,7 @@ class ModelSearch(ModelSearchBase):
def search(self, directory: Union[Path, str]) -> Set[Path]:
self._directory = Path(directory)
if not self._directory.is_absolute():
self._directory = self.config.models_path / self._directory
self._directory = self._directory.resolve()
self.stats = SearchStats() # zero out
self.search_started() # This will initialize _models_found to empty
self._walk_directory(self._directory)