def applicationDidFinishLaunching_(self, notification): self._debugger = DebugWindowController() Updater() if sys.argv[1:]: import re pat = re.compile("--testScript=(.*)") for arg in sys.argv[1:]: m = pat.match(arg) if m is None: continue testScript = m.group(1) self._runTestScript_(testScript) AppKit.NSApp().terminate_(None)
def applicationDidFinishLaunching_(self, notification): retrieveCheckEventQueueForUserCancelFromCarbon() self._debugger = DebugWindowController() Updater() if sys.argv[1:]: import re pat = re.compile("--testScript=(.*)") for arg in sys.argv[1:]: m = pat.match(arg) if m is None: continue AppKit.NSApp().activateIgnoringOtherApps_(True) testScript = m.group(1) self.performSelector_withObject_afterDelay_("_runTestScript:", testScript, 0.25)
def applicationDidFinishLaunching_(self, notification): self._debugger = DebugWindowController() Updater()