def loadAll():
    """this method should only be called by the 'romeo' module"""
    #import all builtin query handlers now
    my_dir = _os.path.dirname(__file__)
    for filename in _os.listdir(my_dir):
        if not filename.endswith('.py'): continue
        if filename == '__init__.py': continue
        modname = filename[:-3]
        try:
            try:
                mod = __import__(__name__ + '.' + modname, fromlist=[modname])
            except __HOLE__:
                #python2.4 __import__ implementation doesn't accept **kwargs
                mod = __import__(__name__ + '.' + modname, {}, {}, [modname])
        except:
            _traceback.print_exc()
dataset/ETHPy150Open OrbitzWorldwide/droned/romeo/lib/romeo/grammars/__init__.py/loadAll