--- examples/demos/qtdemo/menumanager.py.orig
+++ examples/demos/qtdemo/menumanager.py
@@ -328,7 +328,7 @@
             app = QtCore.QLibraryInfo.location(QtCore.QLibraryInfo.BinariesPath) + QtCore.QDir.separator()
 
             if sys.platform == 'darwin':
-                app += 'Assistant.app/Contents/MacOS/Assistant'
+                app = '@QT_APPS_DIR@/Assistant.app/Contents/MacOS/Assistant'
             else:
                 app += 'assistant'
 
--- examples/designer/plugins/plugins.py.orig
+++ examples/designer/plugins/plugins.py
@@ -76,7 +76,7 @@
 designer_bin = QtCore.QLibraryInfo.location(QtCore.QLibraryInfo.BinariesPath)
 
 if sys.platform == 'darwin':
-    designer_bin += '/Designer.app/Contents/MacOS/Designer'
+    designer_bin = '@QT_APPS_DIR@/Designer.app/Contents/MacOS/Designer'
 else:
     designer_bin += '/designer'
 
