From 938aacb174bb34cd131f264ad9d71518bd5cd786 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 23 Apr 2021 14:04:52 +0100 Subject: [PATCH] resolve new path for openpower/isa markdown --- src/openpower/decoder/pseudo/pagereader.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/openpower/decoder/pseudo/pagereader.py b/src/openpower/decoder/pseudo/pagereader.py index ea1b6653..dabfec21 100644 --- a/src/openpower/decoder/pseudo/pagereader.py +++ b/src/openpower/decoder/pseudo/pagereader.py @@ -58,7 +58,8 @@ def get_isa_dir(): fdir = os.path.split(fdir)[0] fdir = os.path.split(fdir)[0] fdir = os.path.split(fdir)[0] - return os.path.join(fdir, "libreriscv", "openpower", "isa") + print (fdir) + return os.path.join(fdir, "openpower", "isa") class ISA: @@ -68,10 +69,12 @@ class ISA: self.forms = {} self.page = {} for pth in os.listdir(os.path.join(get_isa_dir())): - print(get_isa_dir(), pth) + print("examining", get_isa_dir(), pth) if "swp" in pth: continue - assert pth.endswith(".mdwn"), "only %s in isa dir" % pth + if not pth.endswith(".mdwn"): + print ("warning, file not .mdwn, skipping", pth) + continue self.read_file(pth) continue # code which helped add in the keyword "Pseudo-code:" automatically -- 2.30.2