MCPcopy Create free account
hub / github.com/HexHive/NASS / __init__

Method __init__

tools/gef.py:5354–5364  ·  view source on GitHub ↗
(self, manager: "ExternalStructureManager")

Source from the content-addressed store, hash-verified

5352
5353 class Modules(dict):
5354 def __init__(self, manager: "ExternalStructureManager") -> None:
5355 self.manager: "ExternalStructureManager" = manager
5356 self.root: pathlib.Path = manager.path
5357
5358 for entry in self.root.iterdir():
5359 if not entry.is_file(): continue
5360 if entry.suffix != ".py": continue
5361 if entry.name == "__init__.py": continue
5362 module = ExternalStructureManager.Module(manager, entry)
5363 self[module.name] = module
5364 return
5365
5366 def __contains__(self, structure_name: str) -> bool:
5367 """Return True if the structure name is found in any of the modules"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected