Commit 64e70f10 authored by Hanno Schlichting's avatar Hanno Schlichting

Merged c112287 from 2.12 branch

parent 452671a8
...@@ -94,6 +94,7 @@ setup(name='Zope2', ...@@ -94,6 +94,7 @@ setup(name='Zope2',
'zope.interface', 'zope.interface',
'zope.lifecycleevent', 'zope.lifecycleevent',
'zope.location', 'zope.location',
'zope.mkzeoinstance',
'zope.pagetemplate', 'zope.pagetemplate',
'zope.processlifetime', 'zope.processlifetime',
'zope.proxy', 'zope.proxy',
...@@ -118,7 +119,7 @@ setup(name='Zope2', ...@@ -118,7 +119,7 @@ setup(name='Zope2',
zip_safe=False, zip_safe=False,
entry_points={ entry_points={
'console_scripts': [ 'console_scripts': [
'mkzeoinstance=Zope2.utilities.mkzeoinstance:main', 'mkzeoinstance=zope.mkzeoinstance:main',
'mkzopeinstance=Zope2.utilities.mkzopeinstance:main', 'mkzopeinstance=Zope2.utilities.mkzopeinstance:main',
'runzope=Zope2.Startup.run:run', 'runzope=Zope2.Startup.run:run',
'zopectl=Zope2.Startup.zopectl:run', 'zopectl=Zope2.Startup.zopectl:run',
......
##############################################################################
#
# Copyright (c) 2002 Zope Foundation and Contributors.
#
# 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.
#
##############################################################################
import os
import sys
mydir = os.path.dirname(os.path.abspath(sys.argv[0]))
zopehome = os.path.dirname(mydir)
softwarehome = os.path.join(zopehome, "lib", "python")
if softwarehome not in sys.path:
sys.path.insert(0, softwarehome)
from ZEO.mkzeoinst import ZEOInstanceBuilder
def main():
ZEOInstanceBuilder().run()
if __name__ == "__main__":
main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment