def get_sass_directories(system, theme_dir=None):
 if (system not in SYSTEMS):
  raise ValueError("'system' must be one of ({allowed_values})".format(allowed_values=', '.join(SYSTEMS.keys())))
 system = SYSTEMS[system]
 applicable_directories = list()
 if theme_dir:
  applicable_directories.extend(get_theme_sass_dirs(system, theme_dir))
 else:
  applicable_directories.extend(get_system_sass_dirs(system))
 return applicable_directories

def get_sass_directories ( system , theme_dir = None ) : if ( system not in SYSTEMS ) : raise ValueError ( "'system' must be one of ({allowed_values})" . format ( allowed_values = ', ' . join ( SYSTEMS . keys ( ) ) ) ) system = SYSTEMS [ system ] applicable_directories = list ( ) if theme_dir : applicable_directories . extend ( get_theme_sass_dirs ( system , theme_dir ) ) else : applicable_directories . extend ( get_system_sass_dirs ( system ) ) return applicable_directories
determine the set of sass directories to be compiled for the specified list of system and theme and return a list of those directories .