[Zope] Recursively read and write folders during install

robert robert at redcor.ch
Sat Mar 19 08:39:03 EST 2005


David Pratt wrote:

> Hi.  I am creating a product on the filesystem.  Outside of the skins 
> that contain generic scripts and templates, I am organizing a series 
> of folders and their contents in the same hierarchy that I to want it 
> appear in my CMF site.  Some of these folders are two or three levels 
> deep. Can someone suggest a method to recursively read the folders and 
> files from the product and move them to the site during install (or 
> alternatively point me to an existing product install script that 
> demonstrates this).
>
> Many thanks.
> David
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
your product can ask zope where it is installed like:
product_path = globals()['__builtins__']['INSTANCE_HOME'] + '/Products'

robert


More information about the Zope mailing list