[Zope-Checkins] CVS: Zope/inst/skel/inst/in - zctl.py.in:1.1.2.1 zctl.in:NONE
Chris McDonough
chrism@zope.com
Sat, 5 Oct 2002 22:54:43 -0400
Update of /cvs-repository/Zope/inst/skel/inst/in
In directory cvs.zope.org:/tmp/cvs-serv4179/skel/inst/in
Added Files:
Tag: chrism-install-branch
zctl.py.in
Removed Files:
Tag: chrism-install-branch
zctl.in
Log Message:
Split up zctl into a stub and a library.
=== Added File Zope/inst/skel/inst/in/zctl.py.in ===
#!<<PYTHON>>
##############################################################################
#
# Copyright (c) 2001 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
#
##############################################################################
"""
Finds ZctlLib and starts an interactive ZCtl session.
"""
__version__ = '$Revision$'[11:-2]
import sys, os
CONFIG_LOCATION ='<<CONFIG_LOCATION>>'
ZOPE_HOME = '<<BASE_DIR>>'
SOFTWARE_HOME = os.path.join(ZOPE_HOME, 'lib', 'python')
sys.path.insert(0, SOFTWARE_HOME)
sys.path = filter(None, sys.path)
if __name__ == '__main__':
from Controller import ZctlLib
ZctlLib.start(CONFIG_LOCATION, ZOPE_HOME, SOFTWARE_HOME)
=== Removed File Zope/inst/skel/inst/in/zctl.in ===