From 72a2c1f910ad99823683cd3f2f234dfe72b48673 Mon Sep 17 00:00:00 2001 From: acn Date: Sat, 30 Jun 2018 11:12:37 +0200 Subject: [PATCH] Seiten auch finden, wenn Dateiname lowercase ist (z.B. 330331A -> 330331a) --- rtxPage.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rtxPage.py b/rtxPage.py index 686ac33..f2b8577 100644 --- a/rtxPage.py +++ b/rtxPage.py @@ -85,6 +85,14 @@ class rtxPage: filename = path + page + ".cept" """ page has been found - with .cept extension """ break + if os.path.isfile(path + page.lower()): + filename = path + page.lower() + """ page has been found with lowercase filename """ + break + if os.path.isfile(path + page.lower() + ".cept"): + filename = path + page.lower() + ".cept" + """ page has been found with lowercase filename and .cept extension """ + break else: """ page does not exist anywhere, so exit the function """ return False