448a43df9ce416ce62dc418327dc8972532839ba
[blender-staging.git] / release / datafiles / prvicons_update.py
1 #!/usr/bin/env python3
2
3 # This script updates icons from the SVG file
4 import os
5 import sys
6
7 BASEDIR = os.path.abspath(os.path.dirname(__file__)) + os.sep
8
9 inkscape_path = 'inkscape'
10
11 if sys.platform == 'darwin':
12     inkscape_app_path = '/Applications/Inkscape.app/Contents/Resources/script'
13     if os.path.exists(inkscape_app_path):
14         inkscape_path = inkscape_app_path
15
16 cmd = inkscape_path + ' "%sprvicons.svg" --without-gui --export-png="%sprvicons.png"' % (BASEDIR, BASEDIR)
17 os.system(cmd)