def bar_function(debugger, args, result, dict): global UtilityModule result.Printf(UtilityModule.barutil_function("bar told me " + args)) return None def __lldb_init_module(debugger, session_dict): global UtilityModule UtilityModule = __import__("barutil") debugger.HandleCommand("command script add -f bar.bar_function barothercmd") return None