__load__.py 253 B

12345678
  1. # -*- coding: utf-8 -*-
  2. from demeter.admin.page.__load__ import *
  3. import os
  4. if 'IOT_FARM' in os.environ:
  5. Demeter.config['setting']['farm'] = int(os.environ['IOT_FARM'])
  6. Demeter.config['setting']['farmList'] = Demeter.service('common').list('farm')