def themes():
 for i in os.listdir(_THEMES_PATH):
  e = os.path.join(_THEMES_PATH, i)
  if os.path.isdir(e):
   if os.path.islink(e):
    (yield (e, os.readlink(e)))
   else:
    (yield (e, None))

def themes ( ) : for i in os . listdir ( _THEMES_PATH ) : e = os . path . join ( _THEMES_PATH , i ) if os . path . isdir ( e ) : if os . path . islink ( e ) : ( yield ( e , os . readlink ( e ) ) ) else : ( yield ( e , None ) )
returns the list of the themes .