MCPcopy Index your code
hub / github.com/sshuttle/sshuttle / get_module_source

Function get_module_source

sshuttle/ssh.py:18–21  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

16
17
18def get_module_source(name):
19 spec = importlib.util.find_spec(name)
20 with open(spec.origin, "rt") as f:
21 return f.read().encode("utf-8")
22
23
24def empackage(z, name, data=None):

Callers 2

empackageFunction · 0.85
connectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected