forked from bartvdbraak/blender
Fix preview icons update script to work in OSX
This commit is contained in:
parent
094433faa9
commit
885f862ce8
@ -2,9 +2,16 @@
|
||||
|
||||
# This script updates icons from the SVG file
|
||||
import os
|
||||
import sys
|
||||
|
||||
BASEDIR = os.path.abspath(os.path.dirname(__file__)) + os.sep
|
||||
|
||||
cmd = 'inkscape "%sprvicons.svg" --without-gui --export-png="%sprvicons.png"' % (BASEDIR, BASEDIR)
|
||||
os.system(cmd)
|
||||
inkscape_path = 'inkscape'
|
||||
|
||||
if sys.platform == 'darwin':
|
||||
inkscape_app_path = '/Applications/Inkscape.app/Contents/Resources/script'
|
||||
if os.path.exists(inkscape_app_path):
|
||||
inkscape_path = inkscape_app_path
|
||||
|
||||
cmd = inkscape_path + ' "%sprvicons.svg" --without-gui --export-png="%sprvicons.png"' % (BASEDIR, BASEDIR)
|
||||
os.system(cmd)
|
||||
|
Loading…
Reference in New Issue
Block a user