From 2d467c7238459ed1c4554838abb32bf515522a05 Mon Sep 17 00:00:00 2001 From: acn Date: Sat, 30 Jun 2018 11:17:05 +0200 Subject: [PATCH] =?UTF-8?q?exists()-Funktion=20noch=20angepa=C3=9Ft=20f?= =?UTF-8?q?=C3=BCr=20lowercase-Erkennung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rtxPage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtxPage.py b/rtxPage.py index f2b8577..c7b834e 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) or os.path.isfile(path + page + ".cept"): + if os.path.isfile(path + page) or os.path.isfile(path + page + ".cept") or os.path.isfile(path + page.lower()) or os.path.isfile(path + page.lower() + ".cept"): return True return False