/usr/share/pyshared/zope/app/server/zopeskel/bin/debugzope.in is in python-zope.app.server 3.6.0-0ubuntu3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | #!<<PYTHON>> -i
##############################################################################
#
# Copyright (c) 2004 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (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.
#
##############################################################################
"""Script to run the Zope Application Server from the Python prompt.
"""
import os
import sys
SOFTWARE_HOME = r"<<SOFTWARE_HOME>>"
INSTANCE_HOME = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
CONFIG_FILE = os.path.join(INSTANCE_HOME, "etc", "zope.conf")
def startup():
# This removes the script directory from sys.path, which we do
# since there are no modules here.
#
basepath = filter(None, sys.path)
sys.path[:] = [os.path.join(INSTANCE_HOME, "lib", "python"),
SOFTWARE_HOME] + basepath
from zope.app.server.main import debug
db = debug(["-C", CONFIG_FILE] + sys.argv[1:])
if "PYTHONSTARTUP" in os.environ:
execfile(os.environ["PYTHONSTARTUP"])
return db
if __name__ == '__main__':
db = startup()
del startup
from zope.app.debug import Debugger
debugger = app = Debugger.fromDatabase(db)
del db
del Debugger
|