title: Cross platform solution for getting current login name in Python
body: <p>I'm looking for a cross platform solution for getting current login/username in Python.</p>
  <p>I was surprised that <code>os.getlogin()</code> is only supported under Unix and even there is not necessarily returning what you would expect.</p>