def import_verbs_from(proj_name, proj_dir, verb_dir) :
    """import all verb modules from a directory, populates the
    verb and proj_verbs global variables

    :param proj_dir:    name of project that owns verb_dir
    :param verb_dir:    directory with verb python scripts
    """
    global verbs, proj_verbs

    # make sure project-verbs find their modules
    if not proj_dir in sys.path :
        sys.path.insert(0, proj_dir)

    if os.path.isdir(verb_dir) :

        # get all .py file in verb dir
        verb_paths = glob.glob(verb_dir + '/*.py')
        if verb_paths :
            for verb_path in verb_paths :
                verb_module_name = os.path.split(verb_path)[1]
                verb_module_name = os.path.splitext(verb_module_name)[0]
                if not verb_module_name.startswith('__') :
                    if not verb_module_name in verbs :
                        fp, pathname, desc = imp.find_module(verb_module_name, [verb_dir])
                        verb_module = imp.load_module(verb_module_name, fp, pathname, desc)
                        verbs[verb_module_name] = verb_module
                        if proj_verbs not in proj_name :
                            proj_verbs[proj_name] = []
                        proj_verbs[proj_name].append(verb_module_name)
                        
#-------------------------------------------------------------------------------
dataset/ETHPy150Open floooh/fips/mod/verb.py/import_verbs_from/swapped operands of `not in`