| 1234567891011121314151617181920212223242526272829303132 |
- #!/usr/bin/python3
- from app import log
- from app import multicast_enanle
- from time import sleep
- import signal
- if __name__ == "__main__":
- """
- 程序启动入口
-
- Parameters:
-
- Returns:
- """
- """
- desc:
- 启动开关读取
- """
- if multicast_enanle == 'yes':
- from app import multicast_palyer
- signal.signal(signal.SIGINT, multicast_palyer.singal_handler)
- multicast_palyer.start()
- log.logger.info("App Starting...")
- while True:
- sleep(60)
- pass
|