From 741fa4b5afd30b6b13e6cde5432e452d0bcb24d8 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 12 Sep 2011 14:51:25 +0200 Subject: [PATCH] partially revert previous change (*) bugfix as os.path.isfile was called without the path, and (*) re-enable the *.gid filtering, --- sfa/trust/trustedroot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sfa/trust/trustedroot.py b/sfa/trust/trustedroot.py index 364704ed..65b97fa6 100644 --- a/sfa/trust/trustedroot.py +++ b/sfa/trust/trustedroot.py @@ -20,7 +20,8 @@ class TrustedRootList: def get_file_list(self): file_list = [] - for cert_file in os.listdir(self.basedir): + pattern=os.path.join(self.basedir,"*.gid") + for cert_file in glob.glob(pattern): if os.path.isfile(cert_file): - file_list.append(os.path.join(self.basedir, cert_file)) + file_list.append(cert_file) return file_list -- 2.47.0