Hello,<br><br>WIth Zope2, when I need to create or read a file in the filesystem, I usually go in /myzopeinstance/var directory<br>and to find it is pretty easy:<br>import os<br>os.environ[&#39;CLIENT_HOME&#39;]<br><br>But in Zope3, CLIENT_HOME or INSTANCE_HOME are no longer provided in 
os.environ <br><br>I had a look to different source code, and apparently the solution is to use the path of the current file to get the instance home, so we have code like this:<br>os.path.normpath(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; os.path.join
(os.path.dirname(__file__),<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; os.pardir, os.pardir, os.pardir, os.pardir))<br><br>Is there any easier (and cleaner) way to do it ?<br><br>Eric BREHAULT<br>