Test first

merge-requests/8/head
Bob Mottram 2020-12-20 17:47:34 +00:00
parent 8e596603d0
commit 862526819d
1 changed files with 3 additions and 3 deletions

View File

@ -484,9 +484,9 @@ def getImageFile(baseDir: str, name: str, directory: str,
bannerFile = ''
bannerFilename = ''
for ext in bannerExtensions:
bannerFile = name + '.' + ext
bannerFilename = directory + '/' + bannerFile
if os.path.isfile(bannerFilename):
bannerFileTest = name + '.' + ext
bannerFilenameTest = directory + '/' + bannerFileTest
if os.path.isfile(bannerFilenameTest):
bannerFile = name + '_' + theme + '.' + ext
bannerFilename = directory + '/' + bannerFile
break