diff options
Diffstat (limited to 'render-icon-theme.py')
-rwxr-xr-x | render-icon-theme.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/render-icon-theme.py b/render-icon-theme.py index d6713337f..68fd93eeb 100755 --- a/render-icon-theme.py +++ b/render-icon-theme.py @@ -12,12 +12,11 @@ SRC = os.path.join('.', 'src', 'fullcolor') inkscape_process = None def optimize_png(png_file): - return if os.path.exists(ZOPFLIPNG): - process = subprocess.Popen([ZOPFLIPNG, '-y', '-m', png_file, png_file]) + process = subprocess.Popen([ZOPFLIPNG, '-y', '-m', png_file, png_file], stdout=open(os.devnull, 'wb')) process.wait() elif os.path.exists(OPTIPNG): - process = subprocess.Popen([OPTIPNG, '-quiet', '-o7', png_file]) + process = subprocess.Popen([OPTIPNG, '-quiet', '-o7', png_file], stdout=open(os.devnull, 'wb')) process.wait() def wait_for_prompt(process, command=None): |