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@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