From 536bdf96a8a34be7f84a661af146415b1080383f Mon Sep 17 00:00:00 2001 From: acn Date: Fri, 1 Jun 2018 15:00:57 +0200 Subject: [PATCH] Dateierweiterung .cept wird jetzt auch akzeptiert --- rtxPage.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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