From bbafbafb3c2d67907e6dc0c8fc8d0381db3b334f Mon Sep 17 00:00:00 2001 From: CHIPSEC Date: Mon, 13 Oct 2014 17:43:21 -0500 Subject: [PATCH] chipsec_util work around for UEFI shell changing file names case --- source/tool/chipsec_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/tool/chipsec_util.py b/source/tool/chipsec_util.py index d186ef0c..b0d1cd00 100644 --- a/source/tool/chipsec_util.py +++ b/source/tool/chipsec_util.py @@ -89,7 +89,7 @@ class ChipsecUtil: def f_mod(self, x): MODFILE_RE = re.compile("^\w+\.py$") - return ( x.find('__init__') == -1 and MODFILE_RE.match(x) ) + return ( x.lower().find('__init__') == -1 and MODFILE_RE.match(x.lower()) ) def map_modname(self, x): return x.split('.')[0]