|
6 | 6 | __author__ = 'Simon Robinson' |
7 | 7 | __copyright__ = 'Copyright (c) 2023 Simon Robinson' |
8 | 8 | __license__ = 'Apache 2.0' |
9 | | -__version__ = '2023-11-01' # ISO 8601 (YYYY-MM-DD) |
| 9 | +__version__ = '2023-11-02' # ISO 8601 (YYYY-MM-DD) |
10 | 10 | __package_version__ = '.'.join([str(int(i)) for i in __version__.split('-')]) # for pyproject.toml usage only |
11 | 11 |
|
12 | 12 | import abc |
@@ -2262,7 +2262,9 @@ class App: |
2262 | 2262 | """Manage the menu bar icon, server loading, authorisation and notifications, and start the main proxy thread""" |
2263 | 2263 |
|
2264 | 2264 | def __init__(self, args=None): |
2265 | | - global CONFIG_FILE_PATH, CACHE_STORE |
| 2265 | + global CONFIG_FILE_PATH, CACHE_STORE, EXITING |
| 2266 | + EXITING = False # needed to allow restarting when imported from parent scripts (or an interpreter) |
| 2267 | + |
2266 | 2268 | parser = argparse.ArgumentParser(description='%s: transparently add OAuth 2.0 support to IMAP/POP/SMTP client ' |
2267 | 2269 | 'applications, scripts or any other email use-cases that don\'t ' |
2268 | 2270 | 'support this authentication method.' % APP_NAME, add_help=False, |
@@ -3150,8 +3152,6 @@ def exit(self, icon, restart_callback=None): |
3150 | 3152 | if sys.platform == 'darwin' and self.args.gui and self.macos_unload_plist_on_exit: |
3151 | 3153 | self.macos_launchctl('unload') |
3152 | 3154 |
|
3153 | | - EXITING = False # to allow restarting when imported from parent scripts (or an interpreter) |
3154 | | - |
3155 | 3155 |
|
3156 | 3156 | if __name__ == '__main__': |
3157 | 3157 | App() |
0 commit comments