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
Use
pwd.getpwuid(os.getuid())[0]instead ofos.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