Welcome to mirror list, hosted at ThFree Co, Russian Federation.

blender_icons_update.py « datafiles « release - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6f8f366544cf033f318ed68321f4d781f7a30003 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env python3

# This script updates icons from the SVG file
import os

BASEDIR = os.path.abspath(os.path.dirname(__file__)) + os.sep

cmd = 'inkscape "%sblender_icons.svg" --export-dpi=90  --without-gui --export-png="%sblender_icons16.png"' % (BASEDIR, BASEDIR)
os.system(cmd)
cmd = 'inkscape "%sblender_icons.svg" --export-dpi=180 --without-gui --export-png="%sblender_icons32.png"' % (BASEDIR, BASEDIR)
os.system(cmd)