MCPcopy
hub / github.com/Pennyw0rth/NetExec / load_protocol

Method load_protocol

nxc/loaders/protocolloader.py:11–15  ·  view source on GitHub ↗
(self, protocol_path)

Source from the content-addressed store, hash-verified

9
10class ProtocolLoader:
11 def load_protocol(self, protocol_path):
12 loader = SourceFileLoader("protocol", protocol_path)
13 protocol = ModuleType(loader.name)
14 loader.exec_module(protocol)
15 return protocol
16
17 def get_protocols(self):
18 protocols = {}

Callers 5

db_setupFunction · 0.95
mainFunction · 0.95
init_protocol_dbsFunction · 0.95
gen_cli_argsFunction · 0.95
do_protoMethod · 0.80

Calls

no outgoing calls

Tested by 1

db_setupFunction · 0.76