def get_watcher_dirs(theme_dirs=None, themes=None):
 dirs = []
 dirs.extend(COMMON_LOOKUP_PATHS)
 if (theme_dirs and themes):
  themes = get_theme_paths(themes=themes, theme_dirs=theme_dirs)
  for theme in themes:
   for _dir in (get_sass_directories('lms', theme) + get_sass_directories('cms', theme)):
    dirs.append(_dir['sass_source_dir'])
    dirs.extend(_dir['lookup_paths'])
 for _dir in ((get_sass_directories('lms') + get_sass_directories('cms')) + get_common_sass_directories()):
  dirs.append(_dir['sass_source_dir'])
  dirs.extend(_dir['lookup_paths'])
 dirs = list(set(dirs))
 return dirs

def get_watcher_dirs ( theme_dirs = None , themes = None ) : dirs = [ ] dirs . extend ( COMMON_LOOKUP_PATHS ) if ( theme_dirs and themes ) : themes = get_theme_paths ( themes = themes , theme_dirs = theme_dirs ) for theme in themes : for _dir in ( get_sass_directories ( 'lms' , theme ) + get_sass_directories ( 'cms' , theme ) ) : dirs . append ( _dir [ 'sass_source_dir' ] ) dirs . extend ( _dir [ 'lookup_paths' ] ) for _dir in ( ( get_sass_directories ( 'lms' ) + get_sass_directories ( 'cms' ) ) + get_common_sass_directories ( ) ) : dirs . append ( _dir [ 'sass_source_dir' ] ) dirs . extend ( _dir [ 'lookup_paths' ] ) dirs = list ( set ( dirs ) ) return dirs
return sass directories that need to be added to sass watcher .