def x11FontDirectory():
 fontpaths = []
 def add(arg, directory, files):
  fontpaths.append(directory)
 for fontdir in X11FontDirectories:
  try:
   if os.path.isdir(fontdir):
    os.path.walk(fontdir, add, None)
  except (IOError, OSError, TypeError, ValueError):
   pass
 return fontpaths

def x11FontDirectory ( ) : fontpaths = [ ] def add ( arg , directory , files ) : fontpaths . append ( directory ) for fontdir in X11FontDirectories : try : if os . path . isdir ( fontdir ) : os . path . walk ( fontdir , add , None ) except ( IOError , OSError , TypeError , ValueError ) : pass return fontpaths
return the system font directories for x11 .