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:
authorWilliam Reynish <billrey@me.com>2019-03-03 21:02:14 +0300
committerWilliam Reynish <billrey@me.com>2019-03-03 21:02:14 +0300
commit932d0ec676e8c9f9fbc1af91e1e13a5d3c980804 (patch)
tree42e2c0e540b60822ac52ed4f5bfa5f1cbc5c2fc3 /release/datafiles
parent657205530cc680012734200a8babd6232be5ee92 (diff)
Icons: Make blender_icons_geom_update.py support macOS
Diffstat (limited to 'release/datafiles')
-rwxr-xr-xrelease/datafiles/blender_icons_geom_update.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/release/datafiles/blender_icons_geom_update.py b/release/datafiles/blender_icons_geom_update.py
index 0b1cbf40722..c9c95f52899 100755
--- a/release/datafiles/blender_icons_geom_update.py
+++ b/release/datafiles/blender_icons_geom_update.py
@@ -3,6 +3,7 @@
# This script updates icons from the BLEND file
import os
import subprocess
+import sys
def run(cmd):
@@ -39,6 +40,11 @@ blender_bin = os.environ.get("BLENDER_BIN", "blender")
if not os.path.exists(blender_bin):
blender_bin = os.path.join(ROOTDIR, "blender.bin")
+if sys.platform == 'darwin':
+ blender_app_path = '/Applications/blender.app/Contents/MacOS/blender'
+ if os.path.exists(blender_app_path):
+ blender_bin = blender_app_path
+
icons_blend = (
os.path.join(ROOTDIR, "..", "lib", "resources", "icon_geom.blend"),
)