Browse Source

Explicitly give keyring backend on Mac too.

CURA-7180
Remco Burema 3 years ago
parent
commit
1c806199a4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      cura/OAuth2/KeyringAttribute.py

+ 3 - 0
cura/OAuth2/KeyringAttribute.py

@@ -18,6 +18,9 @@ if Platform.isWindows() and hasattr(sys, "frozen"):
     import win32timezone
     from keyring.backends.Windows import WinVaultKeyring
     keyring.set_keyring(WinVaultKeyring())
+if Platform.isOSX() and hasattr(sys, "frozen"):
+    from keyring.backends.OS_X import Keyring
+    keyring.set_keyring(Keyring())
 
 # Even if errors happen, we don't want this stored locally:
 DONT_EVER_STORE_LOCALLY: List[str] = ["refresh_token"]