From: Jacob Lifshay Date: Tue, 1 Aug 2023 04:52:56 +0000 (-0700) Subject: don't warn for directories X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dc5e6dd269c3405574388b6d9cf654cbf997da92;p=openpower-isa.git don't warn for directories --- 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