fixed load_images to allow blank input

This commit is contained in:
Eric Romano
2013-05-22 12:57:39 -04:00
parent 6c4020abd6
commit 58289a28b6
2 changed files with 4 additions and 2 deletions

View File

@ -89,6 +89,8 @@ images={
def load_images(imgNames):
"""loads user images from given file(s)"""
if imgNames[0]=='':
return dict()
for imageName in imgNames:
img = open(imageName)
loadedImgs = {}