Seiten auch finden, wenn Dateiname lowercase ist (z.B. 330331A -> 330331a)
This commit is contained in:
parent
649ebc99dc
commit
72a2c1f910
@ -85,6 +85,14 @@ class rtxPage:
|
|||||||
filename = path + page + ".cept"
|
filename = path + page + ".cept"
|
||||||
""" page has been found - with .cept extension """
|
""" page has been found - with .cept extension """
|
||||||
break
|
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:
|
else:
|
||||||
""" page does not exist anywhere, so exit the function """
|
""" page does not exist anywhere, so exit the function """
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user