def generate(params={}):
    dirs = fn.find_dirs_simple(os.path.join(fn.root_dir(), const.DIR_NAME_FILES, const.DIR_NAME_DJINNI), '*')
    if dirs:
        log.info('Generating files for all modules...')
        dirs.sort()
        for item in dirs:
            if fn.file_exists(os.path.join(item, 'generate.py')):
                dir_name = os.path.basename(item)
                log.info('Generating djinni files for "{0}"...'.format(dir_name))
                fn.run_simple(['python', 'generate.py'], item)
        log.ok()
    else:
        log.error('No djinni modules to generate')
def generate(params={}):
    dirs = fn.find_dirs_simple(os.path.join(fn.root_dir(), const.DIR_NAME_FILES, const.DIR_NAME_DJINNI), '*')
    if dirs:
        log.info('Generating files for all modules...')
        dirs.sort()
        for item in dirs:
            if fn.file_exists(os.path.join(item, 'generate.py')):
                dir_name = os.path.basename(item)
                log.info('Generating djinni files for "{0}"...'.format(dir_name))
                fn.run_simple(['python', 'generate.py'], item)
        log.ok()
    else:
        log.error('No djinni modules to generate')