globalvar.py 739 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/usr/bin/env python
  2. # -*- encoding: utf-8 -*-
  3. '''
  4. @文件 :globalvar.py
  5. @时间 :2022/01/22 10:11:23
  6. @作者 :None
  7. @版本 :1.0
  8. @说明 :全局变量
  9. '''
  10. from utils.can import MessageDeal
  11. class SD:
  12. MAJOR_VERSION_NUMBER = 0
  13. # 子版本号
  14. MINOR_VERSION_NUMBER = 0
  15. # 修正版本号
  16. REVISION_NUMBER = 0
  17. CAN_TYPE = 0
  18. # 加载CAN连接驱动
  19. CAN_CONTROL = MessageDeal()
  20. CAN_ON_OFF = 0
  21. # 工商业储能 or 户储
  22. CCU_TYPE = 0
  23. BCU_ID = 1
  24. # 主机列表
  25. BCU_LIST = [0 for i in range(15)]
  26. BCU_LIFE_STATE = [0 for i in range(15)]
  27. SYSTEM_LANGUAGE = 0
  28. HIGH_DPI = 0
  29. START_RUN = False
  30. FILE_PATH = "./"
  31. RECORD_SAVE = 0
  32. RECORD_NAME = ""