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 = '' bannerFile = ''
bannerFilename = '' bannerFilename = ''
for ext in bannerExtensions: for ext in bannerExtensions:
bannerFile = name + '.' + ext bannerFileTest = name + '.' + ext
bannerFilename = directory + '/' + bannerFile bannerFilenameTest = directory + '/' + bannerFileTest
if os.path.isfile(bannerFilename): if os.path.isfile(bannerFilenameTest):
bannerFile = name + '_' + theme + '.' + ext bannerFile = name + '_' + theme + '.' + ext
bannerFilename = directory + '/' + bannerFile bannerFilename = directory + '/' + bannerFile
break break