def get_system_sass_dirs(system):
 if (system not in ('lms', 'cms')):
  raise ValueError('"system" must either be "lms" or "cms"')
 dirs = []
 sass_dir = ((path(system) / 'static') / 'sass')
 css_dir = ((path(system) / 'static') / 'css')
 dependencies = SASS_LOOKUP_DEPENDENCIES.get(system, [])
 dirs.append({'sass_source_dir': sass_dir, 'css_destination_dir': css_dir, 'lookup_paths': (dependencies + [(sass_dir / 'partials'), sass_dir])})
 if (system == 'lms'):
  dirs.append({'sass_source_dir': (((path(system) / 'static') / 'certificates') / 'sass'), 'css_destination_dir': (((path(system) / 'static') / 'certificates') / 'css'), 'lookup_paths': [(sass_dir / 'partials'), sass_dir]})
 return dirs

def get_system_sass_dirs ( system ) : if ( system not in ( 'lms' , 'cms' ) ) : raise ValueError ( '"system" must either be "lms" or "cms"' ) dirs = [ ] sass_dir = ( ( path ( system ) / 'static' ) / 'sass' ) css_dir = ( ( path ( system ) / 'static' ) / 'css' ) dependencies = SASS_LOOKUP_DEPENDENCIES . get ( system , [ ] ) dirs . append ( { 'sass_source_dir' : sass_dir , 'css_destination_dir' : css_dir , 'lookup_paths' : ( dependencies + [ ( sass_dir / 'partials' ) , sass_dir ] ) } ) if ( system == 'lms' ) : dirs . append ( { 'sass_source_dir' : ( ( ( path ( system ) / 'static' ) / 'certificates' ) / 'sass' ) , 'css_destination_dir' : ( ( ( path ( system ) / 'static' ) / 'certificates' ) / 'css' ) , 'lookup_paths' : [ ( sass_dir / 'partials' ) , sass_dir ] } ) return dirs
return list of sass dirs that need to be compiled for the given system .