From: Luke Kenneth Casson Leighton Date: Fri, 14 Aug 2020 19:43:08 +0000 (+0100) Subject: stop trying to read swap files X-Git-Tag: semi_working_ecp5~345 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb46f175c462d81a9a4e68e75b6140221ce6921b;p=soc.git stop trying to read swap files --- diff --git a/src/soc/decoder/pseudo/pagereader.py b/src/soc/decoder/pseudo/pagereader.py index 4097e691..8583bf4b 100644 --- a/src/soc/decoder/pseudo/pagereader.py +++ b/src/soc/decoder/pseudo/pagereader.py @@ -69,6 +69,8 @@ class ISA: self.page = {} for pth in os.listdir(os.path.join(get_isa_dir())): print(get_isa_dir(), pth) + if "swp" in pth: + continue assert pth.endswith(".mdwn"), "only %s in isa dir" % pth self.read_file(pth) continue