def get_theme_path_real(theme, themes_dirs):
 for themes_dir in themes_dirs:
  dir_name = os.path.join(themes_dir, theme)
  if os.path.isdir(dir_name):
   return dir_name
 dir_name = resource_filename(u'nikola', os.path.join(u'data', u'themes', theme))
 if os.path.isdir(dir_name):
  return dir_name
 raise Exception(u"Can't find theme '{0}'".format(theme))

def get_theme_path_real ( theme , themes_dirs ) : for themes_dir in themes_dirs : dir_name = os . path . join ( themes_dir , theme ) if os . path . isdir ( dir_name ) : return dir_name dir_name = resource_filename ( u'nikola' , os . path . join ( u'data' , u'themes' , theme ) ) if os . path . isdir ( dir_name ) : return dir_name raise Exception ( u"Can't find theme '{0}'" . format ( theme ) )
return the path where the given themes files are located .