Source

iredadmin-ose / iredadmin.py

Zhang Huangbin 8d5669f 









Zhang Huangbin cf27eb2 
Zhang Huangbin 8d5669f 


Zhang Huangbin cf27eb2 
Zhang Huangbin 8d5669f 





#!/usr/bin/env python
# encoding: utf-8

# Author: Zhang Huangbin <michaelbibby (at) gmail.com>

import os, sys
import web

rootdir = os.path.abspath(os.path.dirname(__file__))
sys.path.insert(0, rootdir)
from libs import iredbase, iredutils

# start app
app = iredbase.app
web.notfound = iredutils.notfound

if __name__ == '__main__':
    # Use webpy builtin http server.
    app.run()
else:
    # Run app under Apache + mod_wsgi.
    application = app.wsgifunc()