def load_modules(path):
    """Tries to load all modules in the given path"""
    spath = path.split('.')
    current = ''
    for node in spath:
        current = node if not current else '%s.%s' % (current, node)
        try:
            __import__(current)
        except ImportError:
            break
