From 0b114876ef19782482eb4c9ca8ac1d54973d650e Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Wed, 1 Sep 2021 16:56:47 +0200 Subject: [PATCH] Make this run from source again on Windows. --- cura/OAuth2/KeyringAttribute.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cura/OAuth2/KeyringAttribute.py b/cura/OAuth2/KeyringAttribute.py index 2aff74d031..a8c60de994 100644 --- a/cura/OAuth2/KeyringAttribute.py +++ b/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():