Browse Source

Make this run from source again on Windows.

Remco Burema 3 years ago
parent
commit
0b114876ef
1 changed files with 2 additions and 1 deletions
  1. 2 1
      cura/OAuth2/KeyringAttribute.py

+ 2 - 1
cura/OAuth2/KeyringAttribute.py

@@ -15,7 +15,8 @@ if TYPE_CHECKING:
 import sys
 from UM.Platform import Platform
 if Platform.isWindows():
-    import win32timezone
+    if hasattr(sys, "frozen"):
+        import win32timezone
     from keyring.backends.Windows import WinVaultKeyring
     keyring.set_keyring(WinVaultKeyring())
 if Platform.isOSX():