Check for the optimization programs at the start of execution.
This prevents the annoying case where MCO will fail hours into a run if pngcrush and friends are missing.
This commit is contained in:
4
gmap.py
4
gmap.py
@@ -27,6 +27,7 @@ import re
|
||||
import multiprocessing
|
||||
import time
|
||||
import logging
|
||||
import optimizeimages
|
||||
|
||||
logging.basicConfig(level=logging.INFO,format="%(asctime)s [%(levelname)s] %(message)s")
|
||||
|
||||
@@ -103,7 +104,8 @@ def main():
|
||||
imgformat = 'png'
|
||||
|
||||
if options.optimizeimg:
|
||||
optimizeimg = options.optimizeimg
|
||||
optimizeimg = int(options.optimizeimg)
|
||||
optimizeimages.check_programs(optimizeimg)
|
||||
else:
|
||||
optimizeimg = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user