#! /usr/bin/python __author__="bjschuma" __date__ ="$Mar 13, 2010 4:19:31 PM$" import ocarina print "Welcome to Ocarina 3.0 (core)" ocarina.config() ocarina.events.start(ocarina.events.OCARINA_START) from ct.call import * from ct.path import * import readline # ocarina-core main loop while True: try: exec raw_input(ocarina.vars.PROMPT + " ") readline.write_history_file(ocarina.vars.HISTORYFILE) # Catch this so that we can use ctrl-d to exit except EOFError: print "" exit() except Exception,e: print 1,e