## fss, ok = macfs.PromptGetFile('SMIL file (cancel for URL)', 'TEXT') ## if ok: ## sys.argv = ["macgrins", fss.as_pathname()] ## else: ## import EasyDialogs ## url = EasyDialogs.AskString("SMIL URL") ## if url is None: ## sys.exit(0) ## sys.argv = ["macgrins", url] no_exception=0 try: try: if profile: import profile fss, ok = macfs.StandardPutFile("Profile output:") if not ok: sys.exit(1) profile.run("import grins", fss.as_pathname()) else: import grins no_exception=1 except SystemExit: no_exception=1 finally: if not no_exception: splash.splash() if quietconsole: quietconsole.revert() print 'Type return to exit-', sys.stdin.readline()
def console_callback(self): import quietconsole quietconsole.revert()