| 44:ac449729a896 | 45:aa2a95dc6093 |
|---|---|
| 1 #!/usr/local/bin/python3 | 1 #!/usr/local/bin/python3 |
| 2 | 2 |
| 3 import os | 3 import os |
| 4 import sys | |
| 4 import logging | 5 import logging |
| 5 import logging.handlers | 6 import logging.handlers |
| 6 import argparse | 7 import argparse |
| 7 import platform | 8 import platform |
| 9 import utils | |
| 8 from fifolog import FIFOHandler | 10 from fifolog import FIFOHandler |
| 9 | 11 |
| 10 # | 12 # |
| 11 # Branding | 13 # Branding |
| 12 # | 14 # |
| 96 tray.run() | 98 tray.run() |
| 97 | 99 |
| 98 except Exception as err: | 100 except Exception as err: |
| 99 utils.log_exception(logger, err, detail='Exiting') | 101 utils.log_exception(logger, err, detail='Exiting') |
| 100 logging.shutdown() | 102 logging.shutdown() |
| 103 os.exit() | |
| 101 | 104 |
| 102 # | 105 # |
| 103 # This shit is fucked, disables ^C etc., and threading doesn't seem to help | 106 # This shit is fucked, disables ^C etc., and threading doesn't seem to help |
| 104 # | 107 # |
| 105 | 108 |