1. Thomas Kluyver
  2. cx_Freeze


rreilink  committed a9cf946

fixed missing brace and added an extra location to look for qt_menu.nim (where it is with the current macports Qt build)

  • Participants
  • Parent commits 34da5ff
  • Branches mac-iconfile

Comments (0)

Files changed (1)

File cx_Freeze/macdist.py

View file
  • Ignore whitespace
             path = os.path.join(libpath, subpath)
             if os.path.exists(path):
                 return path
+        # Last resort: fixed paths (macports)
+        for path in ['/opt/local/Library/Frameworks/QtGui.framework/Versions/4/Resources/qt_menu.nib']:
+            if os.path.exists(path):
+                return path
+        print ("Could not find qt_menu.nib")
         raise IOError("Could not find qt_menu.nib")
     def prepare_qt_app(self):
         # Copy the icon
         if self.iconfile:
-            self.copy_file(self.iconfile, os.path.join(self.resourcesDir, 'icon.icns')
+            self.copy_file(self.iconfile, os.path.join(self.resourcesDir, 'icon.icns'))
         # Create the Info.plist file