def import_module_list_by_path (modules_list): assert(isinstance(modules_list, list)) for full_path in modules_list: site.addsitedir(full_path)