'Iterate over the given directories and yield courses.'

def run_imports(self):

    self.preflight()
    for courselike_key in self.xml_module_store.modules.keys():
        try:
            (dest_id, runtime) = self.get_dest_id(courselike_key)
        except DuplicateCourseError:
            continue
        with self.store.bulk_operations(dest_id):
            (source_courselike, courselike, data_path) = self.get_courselike(courselike_key, runtime, dest_id)
            self.import_static(data_path, dest_id)
            self.import_asset_metadata(data_path, dest_id)
            self.import_children(source_courselike, courselike, courselike_key, dest_id)
        with self.store.bulk_operations(dest_id):
            courselike = self.import_drafts(courselike, courselike_key, data_path, dest_id)
        (yield courselike)
