def win32FontDirectory():
 try:
  from six.moves import winreg
 except ImportError:
  pass
 else:
  try:
   user = winreg.OpenKey(winreg.HKEY_CURRENT_USER, MSFolders)
   try:
    return winreg.QueryValueEx(user, u'Fonts')[0]
   except OSError:
    pass
   finally:
    winreg.CloseKey(user)
  except OSError:
   pass
 return os.path.join(os.environ[u'WINDIR'], u'Fonts')

def win32FontDirectory ( ) : try : from six . moves import winreg except ImportError : pass else : try : user = winreg . OpenKey ( winreg . HKEY_CURRENT_USER , MSFolders ) try : return winreg . QueryValueEx ( user , u'Fonts' ) [ 0 ] except OSError : pass finally : winreg . CloseKey ( user ) except OSError : pass return os . path . join ( os . environ [ u'WINDIR' ] , u'Fonts' )
return the user-specified font directory for win32 .