[SOLVED] Recover the current user
Published: September 3, 2021 - 4:39 PM
Good morning,
How do I retrieve the current user?
I tested it with:It works fine when testing the package with PyScripter, but when using it, the value system which was returned to me.
By doing:This returns the last user, but I don't find that very elegant...
THANKS
How do I retrieve the current user?
I tested it with:
Code: Select all
login = get_current_user()By doing:
Code: Select all
login = get_last_logged_on_user().split('\\')[1]THANKS