don't skip over compiled modules in package discovery

This commit is contained in:
Emily Soth 2025-05-09 13:33:42 -07:00
parent ddc5466f85
commit 0f70606b1c
1 changed files with 0 additions and 3 deletions

View File

@ -29,9 +29,6 @@ pyname_to_module = {}
for _, _name, _ispkg in pkgutil.iter_modules(natcap.invest.__path__):
if _name in {'__main__', 'cli', 'ui_server'}:
continue # avoid a circular import
if _name in {'delineateit', 'ndr', 'scenic_quality', 'sdr',
'seasonal_water_yield', 'recreation'}:
continue # avoid compiled models for development of plugin feature branch
_module = importlib.import_module(f'natcap.invest.{_name}')
if _ispkg:
for _, _sub_name, _ in pkgutil.iter_modules(_module.__path__):