-
-
- import config
- from channel import channel_factory
- from common.log import logger
-
- from plugins import *
- if __name__ == '__main__':
- try:
-
- config.load_config()
-
-
- channel_name='wx'
- channel = channel_factory.create_channel(channel_name)
- if channel_name=='wx':
- PluginManager().load_plugins()
-
-
- channel.startup()
- except Exception as e:
- logger.error("App startup failed!")
- logger.exception(e)
|