From 8623c4d807a1925b865339ed566ea06fbb4cbf2c Mon Sep 17 00:00:00 2001 From: Eric DEVEAUD Date: Tue, 23 Apr 2024 12:25:59 +0200 Subject: [PATCH] find bwa from path --- tests/test_tpp.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/test_tpp.py b/tests/test_tpp.py index cb5b0b6..858cb50 100644 --- a/tests/test_tpp.py +++ b/tests/test_tpp.py @@ -17,11 +17,7 @@ tppMain = pytpp.__main__.main def get_bwa(): - if (os.path.exists("/usr/bin/bwa")): - return "/usr/bin/bwa" - elif (os.path.exists("/usr/local/bin/bwa")): - return "/usr/local/bin/bwa" - return "" + return shutil.which("bwa") if not None else None bwa_path = get_bwa()