__init__.py 317 B

1234567891011121314
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. """
  4. demeter init
  5. author:rabin
  6. 这里写页面逻辑
  7. """
  8. from demeter.web import *
  9. path = os.path.split(os.path.realpath(__file__))[0] + '/'
  10. files = Web.file(path)
  11. url = []
  12. for key in files:
  13. module = __import__(key, globals())
  14. url = Web.url(module, key, url)