Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 2 gadiem
123456789101112131415161718192021222324252627
  1. # encoding:utf-8
  2. import config
  3. from channel import channel_factory
  4. from common.log import logger
  5. from plugins import *
  6. def run():
  7. try:
  8. # load config
  9. config.load_config()
  10. # create channel
  11. channel_name='wx'
  12. channel = channel_factory.create_channel(channel_name)
  13. if channel_name=='wx':
  14. PluginManager().load_plugins()
  15. # startup channel
  16. channel.startup()
  17. except Exception as e:
  18. logger.error("App startup failed!")
  19. logger.exception(e)
  20. if __name__ == '__main__':
  21. run()