def get_work_dir(config, build):
    """
    Get the work directory.
    """
    if build:
        return config.get('album', 'build_directory')
    else:
        return config.get('album', 'album_directory')