+ exe, spawn = self.GetPyExecutable()
+ spawn(os.P_NOWAIT, exe, exe, "MDISashDemo.py")
+
+
+ def GetPyExecutable(self):
+ if 'wxMac' in wx.PlatformInfo:
+ # sys.executable will be wrong if running the demo from
+ # an app bundle. Just find pythonw on the path instead.
+ return 'pythonw' + sys.version[:3], os.spawnlp
+ else:
+ return sys.executable, os.spawnl
+