mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
user module has get_user method to get currently set user
This commit is contained in:
parent
79245bcd00
commit
ce5ad584dd
1 changed files with 3 additions and 0 deletions
|
|
@ -40,6 +40,9 @@ class UserModule:
|
|||
os.environ[self.env_name] = username
|
||||
self.widget_login.set_user(username)
|
||||
|
||||
def get_user(self):
|
||||
return self.cred.get("username") or getpass.getuser()
|
||||
|
||||
def process_modules(self, modules):
|
||||
""" Gives ability to connect with imported modules from TrayManager.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue