Angelo Gladding
lahacker.net

dlv5vbq7lzlthol5 4b942a3185b37d00

angelo@lahacker.net

South Pasadena, California, United States currently feels like 70.74°F

Home CodewebFilesweb

__main__.py

Download raw file

import term

import web

__all__ = ["main"]


main = term.application("web", web.__doc__)


@main.register()
class Serve:

    def setup(self, add_arg):
        add_arg("app", help="name of web application")

    def run(self, stdin, log):
        __import__(self.app + ".__web__")
        web.serve(self.app)
        return 0