[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools - app.py:1.45
Fred L. Drake, Jr.
fred at zope.com
Mon May 3 12:48:29 EDT 2004
Update of /cvs-repository/Packages/zpkgtools/zpkgtools
In directory cvs.zope.org:/tmp/cvs-serv14353
Modified Files:
app.py
Log Message:
move the support code into a Support/ directory in the distribution
(required to match the documentation)
=== Packages/zpkgtools/zpkgtools/app.py 1.44 => 1.45 ===
--- Packages/zpkgtools/zpkgtools/app.py:1.44 Fri Apr 30 15:28:03 2004
+++ Packages/zpkgtools/zpkgtools/app.py Mon May 3 12:48:28 2004
@@ -431,6 +431,7 @@
if self.options.revision_tag:
# we really don't want the tagged version of the support code
self.loader = loader.Loader()
+ os.mkdir(os.path.join(self.destination, "Support"))
self.include_support_package(
"zpkgtools", ("cvs://cvs.zope.org/cvs-repository"
":Packages/zpkgtools/zpkgtools"))
@@ -453,7 +454,7 @@
If a directory named `name` is already present in the output
tree, it is left unchanged.
"""
- destination = os.path.join(self.destination, name)
+ destination = os.path.join(self.destination, "Support", name)
if os.path.exists(destination):
# have the package as a side effect of something else
return
@@ -544,6 +545,15 @@
#! /usr/bin/env python
#
# THIS IS A GENERATED FILE. DO NOT EDIT THIS DIRECTLY.
+
+# Add the Support/ directory to sys.path to get our support code:
+#
+import os
+import sys
+support_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)),
+ 'Support')
+if os.path.isdir(support_dir):
+ sys.path.insert(0, support_dir)
import zpkgtools.setup
More information about the Zope-CVS
mailing list