sh_cpl/src/tests_dev/main.py

31 lines
705 B
Python
Raw Normal View History

2020-11-26 11:55:55 +01:00
import sys
from sh_edraft.hosting import ApplicationHost
from sh_edraft.hosting.base.application_base import ApplicationBase
class Program(ApplicationBase):
def __init__(self):
ApplicationBase.__init__(self)
self._app_host = ApplicationHost('CPL_DEV_Test', sys.argv)
self._config = self._app_host.services.config
self._services = self._app_host.services
def create_configuration(self):
self._config.create()
def create_services(self):
self._services.create()
def main(self):
print('RUN')
if __name__ == '__main__':
program = Program()
program.create_configuration()
program.create_services()
program.main()