Dateierweiterung .cept wird jetzt auch akzeptiert
This commit is contained in:
parent
5c0bae1a81
commit
536bdf96a8
@ -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):
|
if os.path.isfile(path + page) or os.path.isfile(path + page + ".cept"):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@ -81,6 +81,10 @@ class rtxPage:
|
|||||||
filename = path + page
|
filename = path + page
|
||||||
""" page has been found, now exit the for loop """
|
""" page has been found, now exit the for loop """
|
||||||
break
|
break
|
||||||
|
if os.path.isfile(path + page + ".cept"):
|
||||||
|
filename = path + page + ".cept"
|
||||||
|
""" page has been found - with .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