main.py 469 B

12345678910111213141516171819
  1. import os
  2. import kaute
  3. from backend import Backend
  4. from settings import SETTINGS
  5. def main():
  6. BASE_DIR = SETTINGS['BASE_DIR']
  7. app = kaute.AppGUI(title=SETTINGS['app_name'],
  8. maximized=SETTINGS['maximized'],
  9. developer_mode=SETTINGS['debug'])
  10. app.static_path = os.path.join(BASE_DIR, 'static/')
  11. app.template_path = os.path.join(BASE_DIR, 'templates/')
  12. app.bind(Backend(app=app))
  13. app.template = ('index.html', {})
  14. app.start()
  15. if __name__ == '__main__':
  16. main()