Nicholas Wieland wrote at 2005-7-27 15:47 +0200:
>I use images inside my reports, so I have to open PIL-image objects inside my 
>product.
>Everything is fine, but I must use the full path, like 
>/Zope-Instance/Products/foobar/image/blah.png, and this is a problem, because 
>the product will have a different path when put in production.

Maybe, you should learn about "package_home".

You find it in "App.Common".

It is used in the form "package_home(globals())" and
returns the directory the current module is located in (provided
this module lies in a Python package or is one).


-- 
Dieter
_______________________________________________
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 )

Reply via email to