1
0

Seiten auch finden, wenn Dateiname lowercase ist (z.B. 330331A -> 330331a)

This commit is contained in:
Anna Christina Naß 2018-06-30 11:12:37 +02:00
parent 649ebc99dc
commit 72a2c1f910

View File

@ -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