From dc5e6dd269c3405574388b6d9cf654cbf997da92 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Mon, 31 Jul 2023 21:52:56 -0700 Subject: [PATCH] don't warn for directories --- src/openpower/decoder/pseudo/pagereader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openpower/decoder/pseudo/pagereader.py b/src/openpower/decoder/pseudo/pagereader.py index 069c44e5..5f30b954 100644 --- a/src/openpower/decoder/pseudo/pagereader.py +++ b/src/openpower/decoder/pseudo/pagereader.py @@ -98,7 +98,8 @@ class ISA: if "swp" in pth: continue if not pth.endswith(".mdwn"): - log ("warning, file not .mdwn, skipping", pth) + if not os.path.isdir(os.path.join(get_isa_dir(), pth)): + log("warning, file not .mdwn, skipping", pth) continue self.read_file(pth) continue -- 2.30.2