2 # Borgend by Tuomo Valkonen, 2018 |
2 # Borgend by Tuomo Valkonen, 2018 |
3 # |
3 # |
4 # Repository abstraction for queuing. |
4 # Repository abstraction for queuing. |
5 # |
5 # |
6 |
6 |
|
7 import os |
|
8 env=os.environ.copy() |
|
9 if '_PY2APP_LAUNCHED_' in env: |
|
10 # Horrible hack to make keyring work the shit knownas py2app. |
|
11 from keyring.backends.OS_X import Keyring |
|
12 import keyring |
|
13 keyring.set_keyring(Keyring()) |
|
14 else: |
|
15 # Normal import |
|
16 import keyring |
|
17 |
7 import weakref |
18 import weakref |
8 import keyring |
|
9 import logging |
19 import logging |
10 |
20 |
11 from . import config |
21 from . import config |
12 from .scheduler import QueueThread, QueuedEvent |
22 from .scheduler import QueueThread, QueuedEvent |
13 from .exprotect import protect_noreturn |
23 from .exprotect import protect_noreturn |