1def bar_function(debugger, args, result, dict): 2 global UtilityModule 3 print >>result, (UtilityModule.barutil_function("bar told me " + args)) 4 return None 5 6def __lldb_init_module(debugger, session_dict): 7 global UtilityModule 8 UtilityModule = __import__("barutil") 9 debugger.HandleCommand("command script add -f bar.bar_function barothercmd") 10 return None