xref: /linux/tools/testing/selftests/drivers/net/lib/py/__init__.py (revision 621cde16e49b3ecf7d59a8106a20aaebfb4a59a9)
1# SPDX-License-Identifier: GPL-2.0
2
3import sys
4from pathlib import Path
5
6KSFT_DIR = (Path(__file__).parent / "../../../..").resolve()
7
8try:
9    sys.path.append(KSFT_DIR.as_posix())
10    from net.lib.py import *
11except ModuleNotFoundError as e:
12    ksft_pr("Failed importing `net` library from kernel sources")
13    ksft_pr(str(e))
14    ktap_result(True, comment="SKIP")
15    sys.exit(4)
16
17from .env import *
18from .load import *
19from .remote import Remote
20