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=26e689f923636bfdae9098b8eb39088292211e2e;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