File: common.py

package info (click to toggle)
scapy 2.6.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,956 kB
  • sloc: python: 163,618; sh: 90; makefile: 11
file content (15 lines) | stat: -rw-r--r-- 400 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# SPDX-License-Identifier: GPL-2.0-only
# This file is part of Scapy
# See https://scapy.net/ for more information
# Copyright (C) Guillaume Valadon

import os
import sys

scapy_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))
sys.path.append(scapy_path)

from scapy.all import *

print("Scapy %s - Benchmarks" % VERSION)
print("Python %s" % sys.version.replace("\n", ""))