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()