ispeaker 540 B

1234567891011121314151617181920212223242526272829303132
  1. #!/usr/bin/python3
  2. from app import log
  3. from app import multicast_enanle
  4. from time import sleep
  5. import signal
  6. if __name__ == "__main__":
  7. """
  8. 程序启动入口
  9. Parameters:
  10. Returns:
  11. """
  12. """
  13. desc:
  14. 启动开关读取
  15. """
  16. if multicast_enanle == 'yes':
  17. from app import multicast_palyer
  18. signal.signal(signal.SIGINT, multicast_palyer.singal_handler)
  19. multicast_palyer.start()
  20. log.logger.info("App Starting...")
  21. while True:
  22. sleep(60)
  23. pass