def get_all_theme_template_dirs():
 themes = get_themes()
 template_paths = list()
 for theme in themes:
  template_paths.extend(theme.template_dirs)
 return template_paths

def get_all_theme_template_dirs ( ) : themes = get_themes ( ) template_paths = list ( ) for theme in themes : template_paths . extend ( theme . template_dirs ) return template_paths
returns template directories for all the themes .