def get_system_username():
 try:
  return getpass.getuser().decode(locale.getdefaultlocale()[1])
 except (ImportError, KeyError, UnicodeDecodeError):
  return u''

def get_system_username ( ) : try : return getpass . getuser ( ) . decode ( locale . getdefaultlocale ( ) [ 1 ] ) except ( ImportError , KeyError , UnicodeDecodeError ) : return u''
try to determine the current system users username .