File: core_plugins.py

package info (click to toggle)
paperwork 2.2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 166,660 kB
  • sloc: python: 44,775; makefile: 992; sh: 625; xml: 135
file content (24 lines) | stat: -rwxr-xr-x 531 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python3

import logging

import openpaperwork_core


LOGGER = logging.getLogger(__name__)


def main():
    LOGGER.info("Start")
    core = openpaperwork_core.Core()
    core.load("openpaperwork_core.logs.print")
    core.load("openpaperwork_core.uncaught_exception")
    core.load('openpaperwork_core.config')
    core.load('openpaperwork_core.config.backend.configparser')
    core.init()
    core.init_logs("some_app_name", default_log_level="info")
    LOGGER.info("End")


if __name__ == "__main__":
    main()