[Zope3-checkins] CVS: Zope3/src/zope/app/process - main.py:1.3
schema.xml:1.3
Fred L. Drake, Jr.
fred at zope.com
Mon Oct 13 17:55:13 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/process
In directory cvs.zope.org:/tmp/cvs-serv24818
Modified Files:
main.py schema.xml
Log Message:
Add support for "path" configuration similar to that in the Zope 2 schema.
=== Zope3/src/zope/app/process/main.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/process/main.py:1.2 Wed Jun 25 11:29:32 2003
+++ Zope3/src/zope/app/process/main.py Mon Oct 13 17:55:12 2003
@@ -79,6 +79,9 @@
options.realize(args)
options = options.configroot
+ if options.path:
+ sys.path[:0] = [os.path.abspath(p) for p in options.path]
+
sys.setcheckinterval(options.check_interval)
options.eventlog()
=== Zope3/src/zope/app/process/schema.xml 1.2 => 1.3 ===
--- Zope3/src/zope/app/process/schema.xml:1.2 Wed Jun 25 11:29:32 2003
+++ Zope3/src/zope/app/process/schema.xml Mon Oct 13 17:55:12 2003
@@ -65,4 +65,17 @@
for internal purposes.
</description>
</key>
+
+ <multikey name="path" datatype="string">
+ <description>
+ This specifies additional paths directories which are inserted into
+ the beginning of Python's module search path. The set of directories
+ specified is inserted into the beginning of the module search path in
+ the order which they are specified here. Note that the processing of
+ this directive may happen too late under some circumstances; it is
+ recommended that you use the PYTHONPATH environment variable if
+ using this directive doesn't work for you.
+ </description>
+ <metadefault>$softwarehome/src</metadefault>
+ </multikey>
</schema>
More information about the Zope3-Checkins
mailing list