if sys.platform.startswith('darwin'):
if hasattr(sys, 'frozen'):
- from Foundation import *
- resourceBasePath = NSBundle.mainBundle().resourcePath()
+ try:
+ #Foundation import can crash on some MacOS installs
+ from Foundation import *
+ resourceBasePath = NSBundle.mainBundle().resourcePath()
+ except:
+ resourceBasePath = os.path.join(os.path.dirname(__file__), "../../../../../")
else:
resourceBasePath = os.path.join(os.path.dirname(__file__), "../resources")
else: