setup: don't rebuild existing images (#8040)

This commit is contained in:
Frédéric Péters 2015-08-12 10:56:43 +02:00 committed by Thomas NOEL
parent 200cad04bd
commit b0506aa524
1 changed files with 2 additions and 0 deletions

View File

@ -112,6 +112,8 @@ class build_icons(Command):
#print '\n'.join(sorted(css_rules))
def generate(self, src, dest, colour, width, **kwargs):
if os.path.exists(dest) and os.stat(dest).st_mtime >= os.stat(src).st_mtime:
return
# default values
from PIL import Image
from PIL import PngImagePlugin