forked from patrick-klein/script.library.integration.tool
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdefault.py
More file actions
30 lines (22 loc) · 638 Bytes
/
default.py
File metadata and controls
30 lines (22 loc) · 638 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# -*- coding: utf-8 -*-
"""Main executable module."""
import logging
import sys
from os.path import basename
from resources.lib import logger
from resources.lib.menus.main import MainMenu
from resources.lib.test.tests import run_tests
LOG = logging.getLogger(basename(__file__))
logger.logging_setup()
# noinspection PyBroadException
def main():
"""Main entry point for addon."""
if "test" in sys.argv:
run_tests()
return
try:
MainMenu().show()
except: # noqa: E261 # noqa: E261
LOG.exception("Main menu error")
if __name__ == "__main__":
main()