File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -119,9 +119,13 @@ def _get_components_from_dir(
119119 search_pattern = os .path .join (search_dir , "**" , "*.py" )
120120 component_defs = []
121121 for filepath in glob .glob (search_pattern , recursive = True ):
122- module = self ._try_load_module (
123- self ._get_module_name (filepath , search_dir , base_module )
124- )
122+ module_name = self ._get_module_name (filepath , search_dir , base_module )
123+ # TODO(aivanou): move `torchx.components.base` to `torchx.specs`, since
124+ # there is nothing related to components in `torchx.components.base`
125+ # see https://github.com/pytorch/torchx/issues/261
126+ if module_name .startswith ("torchx.components.base" ):
127+ continue
128+ module = self ._try_load_module (module_name )
125129 defs = self ._get_components_from_module (base_module , module )
126130 component_defs += defs
127131 return component_defs
You can’t perform that action at this time.
0 commit comments