1
#!/usr/bin/env python2.4
2
##############################################################################
4
# Copyright (c) 2004 Zope Corporation and Contributors.
7
# This software is subject to the provisions of the Zope Public License,
8
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
9
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
10
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
11
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
12
# FOR A PARTICULAR PURPOSE.
14
##############################################################################
15
"""Script to create a new Zope instance home.
23
here = os.path.dirname(os.path.realpath(__file__))
24
swhome = os.path.dirname(here)
26
from_checkout = os.path.isdir(os.path.join(swhome, ".svn"))
32
("Lib", "site-packages"),
34
d = os.path.join(swhome, *(parts + ("zope", "app", "appsetup")))
36
d = os.path.join(swhome, *parts)
41
import zope.app.server
43
print >>sys.stderr, "Could not locate Zope software installation!"
47
from zope.app.server.mkzopeinstance import main
50
sys.exit(main(from_checkout=from_checkout))