0

fixed dumb boolean logic in optimizeimg check

This commit is contained in:
Aaron Griffith
2011-04-10 05:57:15 -04:00
parent dfe30a0d0f
commit b9a21b98e0

View File

@@ -30,7 +30,7 @@ def check_programs(level):
for prog,l in [(pngcrush,1), (optipng,2), (advdef,2)]:
if l <= level:
if (not exists_in_path(prog)) or (not exists_in_path(prog + ".exe")):
if (not exists_in_path(prog)) and (not exists_in_path(prog + ".exe")):
raise Exception("Optimization prog %s for level %d not found!" % (prog, l))
def optimize_image(imgpath, imgformat, optimizeimg):