|
@ -73,7 +73,11 @@ if sys.platform == 'darwin': |
|
|
qt_menu_location = "/opt/local/lib/Resources/qt_menu.nib" |
|
|
qt_menu_location = "/opt/local/lib/Resources/qt_menu.nib" |
|
|
else: |
|
|
else: |
|
|
# No dice? Then let's try the brew version |
|
|
# 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) |
|
|
qt_menu_location = re.sub('\n', '', qt_menu_location) |
|
|
|
|
|
|
|
|
if (len(qt_menu_location) == 0): |
|
|
if (len(qt_menu_location) == 0): |
|
|