From 3d4dee5f0cb0b32cbf405f0198e112d17249e0f3 Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Mon, 24 Mar 2025 05:07:28 +0000 Subject: [PATCH] tests: add another directory to search path for pylint Some IDEs (e.g., emacs+lsp) run pylint from the root directory and so we need to add `tests/topotests` so that `lib` and `munet` are found by pylint when used in imports Signed-off-by: Christian Hopps --- .pylintrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pylintrc b/.pylintrc index ba9430ba6b..c829d45127 100644 --- a/.pylintrc +++ b/.pylintrc @@ -1,5 +1,5 @@ [MASTER] -init-hook="import sys; sys.path.insert(0, '..')" +init-hook="import sys; sys.path.extend(['..', 'tests/topotests']);" signature-mutators=common_config.retry,retry [FORMAT] -- 2.39.5