Dateierweiterung .cept wird jetzt auch akzeptiert
This commit is contained in:
parent
5c0bae1a81
commit
536bdf96a8
@ -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):
|
||||
if os.path.isfile(path + page) or os.path.isfile(path + page + ".cept"):
|
||||
return True
|
||||
return False
|
||||
|
||||
@ -81,6 +81,10 @@ class rtxPage:
|
||||
filename = path + page
|
||||
""" page has been found, now exit the for loop """
|
||||
break
|
||||
if os.path.isfile(path + page + ".cept"):
|
||||
filename = path + page + ".cept"
|
||||
""" page has been found - with .cept extension """
|
||||
break
|
||||
else:
|
||||
""" page does not exist anywhere, so exit the function """
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user