[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Making zope Pre-Depends on zopectl



On Fri, Oct 24, 2003 at 03:41:11PM -0400, Jim Penny wrote:
> Please.  I need to know which Extensions directories exist, and the
> current zopectl is quite difficult to deal with in this regards.
I've added a conf method for ZopeInstance class (zopectl 0.3.0).

from ZopeCTL import ZopeController
from glob import glob
import os

selfrc = '/etc/zopectl/zopectlrc'
paths = glob('/etc/zopectl/*.conf') + glob('/etc/zopectl/*.ini')
for instance in ZopeController(selfrc, paths).instances:
	print os.paht.join(instance.conf('instance-home'), 'Extensions')

BTW, i do not understand how this is related to the topic.

ciao,
-- 
Luca - De Whiskey's - De Vitis              | Elegant or ugly code as well
aliases: Luca ^De [A-Z][A-Za-z\-]*[iy]'\?s$ | as fine or rude sentences have
Luca, a wannabe ``Good guy''.               | something in common: they
local LANG="it_IT@euro"                     | don't depend on the language.



Reply to: