From: Ben K. <ben...@ya...> - 2001-07-13 02:05:01
|
Hello, I am in the process of making a jdbc/Swing app in Java. I would like to pull the username from the registry to autofill a field. In Python it is easy: import _winreg x=_winreg.ConnectRegistry(None,_winreg.HKEY_LOCAL_MACHINE); y= _winreg.OpenKey(x,"Network\Logon"); username = _winreg.QueryValueEx(y,"username")[0] print username Unfortunately this function is not available in Java (or Jython). Are there any plans to incorporate this into Jython. If there were a way that I could duplicate this feature in the "Core Python" language, I could simply compile it as a java app and that would be it. Thanks in advance for any information. Best regards, Ben |