MCPcopy Create free account
hub / github.com/secdev/scapy / import_module

Function import_module

scapy/tools/UTscapy.py:105–111  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

103
104
105def import_module(name):
106 if name.endswith(".py"):
107 name = name[:-3]
108 try:
109 return importlib.import_module(name, package="scapy")
110 except Exception:
111 return importlib.import_module(name)
112
113
114# INTERNAL/EXTERNAL FILE EMBEDDING #

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…