Ah, thanks - I tested #203 locally - it works, thanks!
> pwd.getpwuid(os.getuid())[0], but that returned 'root' as user...
I know, that's why I suggested using getlogin. :)
The other way to get this is to use:
from os import getenv getenv("LOGNAME") getenv("SUDO_USER")
Ah, thanks - I tested #203 locally - it works, thanks!
> pwd.getpwuid( os.getuid( ))[0], but that returned 'root' as user...
I know, that's why I suggested using getlogin. :)
The other way to get this is to use:
from os import getenv
getenv("LOGNAME")
getenv("SUDO_USER")