[Zope-Checkins] CVS: Zope/bin - runzope.py:1.1.2.1

Fred L. Drake, Jr. fred@zope.com
Fri, 14 Feb 2003 01:03:51 -0500


Update of /cvs-repository/Zope/bin
In directory cvs.zope.org:/tmp/cvs-serv13829

Added Files:
      Tag: new-install-branch
	runzope.py 
Log Message:
Minimal script that actually causes Zope to run if we have a config file.
Yes, we managed to get it to start; most of the changes are checked in.


=== Added File Zope/bin/runzope.py ===
#!python
##############################################################################
#
# Copyright (c) 2003 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Start Zope.  Now!"""

import App.config

from Zope.Startup import handlers, options, start_zope


def main():
    opts = options.ZopeOptions()
    opts.realize()
    handlers.handleConfig(opts.configroot,
                          opts.confighandlers, [])
    App.config.setConfiguration(opts.configroot)
    start_zope(opts.configroot)


if __name__ == "__main__":
    main()