1
0

exists()-Funktion noch angepaßt für lowercase-Erkennung

This commit is contained in:
Anna Christina Naß 2018-06-30 11:17:05 +02:00
parent 72a2c1f910
commit 2d467c7238

View File

@ -36,7 +36,7 @@ class rtxPage:
def exists(page): def exists(page):
""" checks if the page (i.e. the file) exists """ """ checks if the page (i.e. the file) exists """
for path in config.PAGES: 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 True
return False return False