From 1e2764278edb40897869fa8df241d54d38017255 Mon Sep 17 00:00:00 2001 From: Kostas Karmas Date: Fri, 8 May 2020 16:58:33 +0200 Subject: [PATCH] Remove unnecessary os.path.basename call --- tests/Machines/TestPlatformMeshes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Machines/TestPlatformMeshes.py b/tests/Machines/TestPlatformMeshes.py index 2daf677112..7c9de8daf5 100644 --- a/tests/Machines/TestPlatformMeshes.py +++ b/tests/Machines/TestPlatformMeshes.py @@ -11,7 +11,7 @@ def collecAllPlatformMeshes(): result = [] for root, directories, filenames in os.walk(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "resources", "meshes"))): for filename in filenames: - if os.path.basename(filename) not in __exclude_filenames: + if filename not in __exclude_filenames: result.append(os.path.join(root, filename)) return result