Resolves a path relative to scapy's root folder
(fname)
| 78 | |
| 79 | |
| 80 | def 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 | |
| 89 | class no_debug_dissector: |
no test coverage detected
searching dependent graphs…