1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2025-01-03 05:36:19 +00:00

fix "string statement has no effect"

This commit is contained in:
Thomas Waldmann 2018-11-22 03:18:09 +01:00
parent b73da22f59
commit 80a225c15e
2 changed files with 3 additions and 6 deletions

View file

@ -4,11 +4,8 @@
def get_updater():
if sys.platform == 'darwin' and getattr(sys, 'frozen', False):
"""
Use sparkle framework on macOS.
Examples: https://programtalk.com/python-examples/objc.loadBundle/
"""
# Use sparkle framework on macOS.
# Examples: https://programtalk.com/python-examples/objc.loadBundle/
from objc import loadBundle
bundle_path = os.path.join(os.path.dirname(sys.executable), os.pardir, 'Frameworks', 'Sparkle.framework')
loadBundle('Sparkle', globals(), bundle_path)

View file

@ -39,7 +39,7 @@ def delete_password(self, service, repo_url):
pass
"""Select keyring/Workaround for pyinstaller+keyring issue."""
# Select keyring/Workaround for pyinstaller+keyring issue.
if sys.platform == 'darwin':
from keyring.backends import OS_X
keyring.set_keyring(OS_X.Keyring())