#! /usr/bin/env mpscript # # This script starts an interactive Python shell with the MX database # already set up. # import code def main( record_list, argv ): namespace = globals().copy() namespace.update( locals() ) s = code.InteractiveConsole( namespace ) s.interact( "(MX Python Interactive Console)" )