#65 Get correct login without TTY
Merged by cqi. Opened by lsedlar.
lsedlar/rpkg login-no-tty  into  master

Download 65.patch

Use pwd.getpwuid(os.getuid())[0] instead of os.getlogin() to make pyrpkg usable without tty.

This is rebased PR #4. I added a sign off myself, as the original author does not seem to respond anymore. I don't think this is a problem as the code change comes directly from Python documentation: https://docs.python.org/2/library/os.html#os.getlogin

Thanks. LGTM.

Pull-Request has been merged by cqi

Metadata