From 1ed00e108b3db538b53e87d9d1828a0db2725f92 Mon Sep 17 00:00:00 2001 From: Helmut K. C. Tessarek Date: Fri, 20 Dec 2013 19:52:41 -0500 Subject: [PATCH] ports do not necessarily install qt_menu.nib in /opt/local/lib/Resources/ it could be anywhere under /opt/local, changed code to search /opt/local, if necessary --- setup-release.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/setup-release.py b/setup-release.py index d5fb297..5e8e205 100644 --- a/setup-release.py +++ b/setup-release.py @@ -73,7 +73,11 @@ if sys.platform == 'darwin': qt_menu_location = "/opt/local/lib/Resources/qt_menu.nib" else: # No dice? Then let's try the brew version - qt_menu_location = os.popen("find /usr/local/Cellar -name qt_menu.nib | tail -n 1").read() + if os.path.exists("/usr/local/Cellar"): + qt_menu_location = os.popen("find /usr/local/Cellar -name qt_menu.nib | tail -n 1").read() + # no brew, check /opt/local + else: + qt_menu_location = os.popen("find /opt/local -name qt_menu.nib | tail -n 1").read() qt_menu_location = re.sub('\n', '', qt_menu_location) if (len(qt_menu_location) == 0): -- 1.7.1