From 5c3057490962bed950599a3752201b7265e85a44 Mon Sep 17 00:00:00 2001 From: Philipp Grimm Date: Thu, 28 Mar 2024 22:39:35 +0100 Subject: [PATCH] try to fix get site-paclages folder for ubutnu --- tests/test_metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_metadata.py b/tests/test_metadata.py index 1e97c864..5ed3e5f6 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -14,7 +14,7 @@ def get_site_package_folder(self): def find_lib_folder(self, lib_name:str): dirs = [f for f in os.listdir(self.get_site_package_folder()) if f.startswith(lib_name.replace('-', '_')+'-')] if len(dirs) == 1: - for f in os.listdir(self.get_site_package_folder()): + for f in os.listdir(os.join(self.get_site_package_folder(),dirs[0])): print(f"file in dir: {f}") return dirs[0] return None