diff --git a/rtxPage.py b/rtxPage.py index d1240af..686ac33 100644 --- a/rtxPage.py +++ b/rtxPage.py @@ -36,7 +36,7 @@ class rtxPage: def exists(page): """ checks if the page (i.e. the file) exists """ for path in config.PAGES: - if os.path.isfile(path + page): + if os.path.isfile(path + page) or os.path.isfile(path + page + ".cept"): return True return False @@ -81,6 +81,10 @@ class rtxPage: filename = path + page """ page has been found, now exit the for loop """ break + if os.path.isfile(path + page + ".cept"): + filename = path + page + ".cept" + """ page has been found - with .cept extension """ + break else: """ page does not exist anywhere, so exit the function """ return False