Source

pp-web / src / start.py

#!/usr/bin/env python
# File: start.py
# Author: Thejesh <i@thejeshgn.com>
# Desc: This program will start the web app with either client or server mode.
# The client runs the worker jobs which executes to the jobs provided by server
# Parallel Python Web - http://code.thejeshgn.com/pp-web/
__version__ = "0.0.0"
__license__ = "BSD"
__author__  = "Thejesh GN <i@thejeshgn.com>"

import math
import sys
import web

sys.path.append(sys.path[0])
sys.path.append(sys.path[0]+"/model")
#from pp import pp

urls = (
    '/(.*)/','redirect', 
    '/','home.welcome',
    '/server','server.welcome',
    '/worker','worker.welcome'
    )

  

if __name__ == "__main__":
    app = web.application(urls, globals())
    app.run()