MCPcopy
hub / github.com/pathwaycom/pathway / find_spec

Method find_spec

python/pathway/_engine_finder.py:28–39  ·  view source on GitHub ↗
(
        self,
        fullname: str,
        path: Sequence[str] | None,
        target: ModuleType | None = None,
    )

Source from the content-addressed store, hash-verified

26
27class MagicCargoFinder(MetaPathFinder):
28 def find_spec(
29 self,
30 fullname: str,
31 path: Sequence[str] | None,
32 target: ModuleType | None = None,
33 ) -> ModuleSpec | None:
34 if fullname != MODULE_NAME:
35 return None
36
37 manifest_dir = Path(__file__).parent.parent.parent
38 module_path = cargo_build(manifest_dir)
39 return spec_from_file_location(MODULE_NAME, module_path)
40
41
42def cargo_build(manifest_dir: Path) -> Path:

Callers

nothing calls this directly

Calls 1

cargo_buildFunction · 0.85

Tested by

no test coverage detected