[Zope3-dev] Re: zopeproducts, yet again

Fred L. Drake, Jr. fred at zope.com
Mon Oct 13 16:54:32 EDT 2003


Jeffrey P Shell writes:
 > Is there a way to add to that path just to run Zope?  Zope 2.7's 
 > ZConfig setup includes the 'products' directive:

It wouldn't be difficult to add something similar to Zope 2's "path"
setting:

      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.

Note that this is different from the "products" setting; that modified
Products.__path__, while the "path" setting modifies sys.path.  Zope 3
simply doesn't have an equivalent to Zope 2's Products package, and it
doesn't need one.

I'm happy to add a "path" setting matching this description, however.


  -Fred

-- 
Fred L. Drake, Jr.  <fred at zope.com>
PythonLabs at Zope Corporation



More information about the Zope3-dev mailing list