diff options
author | William Reynish <billrey@me.com> | 2019-03-03 21:02:14 +0300 |
---|---|---|
committer | William Reynish <billrey@me.com> | 2019-03-03 21:02:14 +0300 |
commit | 932d0ec676e8c9f9fbc1af91e1e13a5d3c980804 (patch) | |
tree | 42e2c0e540b60822ac52ed4f5bfa5f1cbc5c2fc3 /release/datafiles | |
parent | 657205530cc680012734200a8babd6232be5ee92 (diff) |
Icons: Make blender_icons_geom_update.py support macOS
Diffstat (limited to 'release/datafiles')
-rwxr-xr-x | release/datafiles/blender_icons_geom_update.py | 6 |
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"), ) |