# ---------------------------------------------------- # primfilter = None frameForDisplay = 1 # ---------------------------------------------------- # # COMMAND LOOP # ---------------------------------------------------- # # not this only works because we install a stdout filter # right away with this if (True): ro.run(rec, co) # ---------------------------------------------------- # except KeyboardInterrupt: co.is_finished(True) if (useTK): cw.quit() #co.persist_cal_index(calindfile) print "Ctrl-C Exit" prs.unregister() raise except astrodata.ReductionObjects.ReductionExcept, e: log.error("FATAL:" + str(e)) break; #prs.unregister() #sys.exit() except: f = open("context.log", "w") if co: f.write(co.report(showall=True))