MCPcopy Index your code
hub / github.com/secdev/scapy / scapy_path

Function scapy_path

scapy/tools/UTscapy.py:80–86  ·  view source on GitHub ↗

Resolves a path relative to scapy's root folder

(fname)

Source from the content-addressed store, hash-verified

78
79
80def scapy_path(fname):
81 """Resolves a path relative to scapy's root folder"""
82 if fname.startswith('/'):
83 fname = fname[1:]
84 return os.path.abspath(os.path.join(
85 os.path.dirname(__file__), '../../', fname
86 ))
87
88
89class no_debug_dissector:

Callers 2

example_server.pyFile · 0.90
example_client.pyFile · 0.90

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…