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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2014-08-31 03:17:26 +0400
committerDalai Felinto <dfelinto@gmail.com>2014-08-31 03:17:45 +0400
commit885f862ce81139e7d31c7b0e20affc12d845c85d (patch)
tree8ed87daa06e5eb9f0c6b101587e767b07af82676 /release/datafiles
parent094433faa95f449f7bb119958d323777196ae01d (diff)
Fix preview icons update script to work in OSX
Diffstat (limited to 'release/datafiles')
-rwxr-xr-xrelease/datafiles/prvicons_update.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/release/datafiles/prvicons_update.py b/release/datafiles/prvicons_update.py
index ecc466aab72..448a43df9ce 100755
--- a/release/datafiles/prvicons_update.py
+++ b/release/datafiles/prvicons_update.py
@@ -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)