portability tag

1 questions


1 answers
157 views
0
How do I find out the user's name regardless of platform?

uname = getUserName()I'm looking for a function to figure out the user name in this way.I looked it upos.getuid works only on UNIX (and returns id, not name)pwd module is only available on Unix.I hope...


© 2024 OneMinuteCode. All rights reserved.