exists()-Funktion noch angepaßt für lowercase-Erkennung
This commit is contained in:
parent
72a2c1f910
commit
2d467c7238
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user