[Zope-Checkins] CVS: Zope/lib/python/Zope/Startup - run.py:1.1

Richard Jones richard@commonground.com.au
Mon, 7 Apr 2003 20:48:46 -0400


Update of /cvs-repository/Zope/lib/python/Zope/Startup
In directory cvs.zope.org:/tmp/cvs-serv11371/lib/python/Zope/Startup

Added Files:
	run.py 
Log Message:
*ahem* ... an nobody notice ;)

=== Added File Zope/lib/python/Zope/Startup/run.py ===

# this function will actually start up a Zope instance
def run():
    import App.config
    from Zope.Startup import handlers, options, start_zope

    opts = options.ZopeOptions()
    opts.realize()
    handlers.handleConfig(opts.configroot, opts.confighandlers)
    App.config.setConfiguration(opts.configroot)
    start_zope(opts.configroot)

if __name__ == '__main__':
    run()