Le 16 juin 2010 à 21:32, Suresh V. a écrit : > Gilles Lenfant wrote: >> Hi, >> >> I'm actually checking some of my components with Plone 4. I noticed a >> strange thing with INSTANCE_HOME. >> >> As seen from the ZMI, it's OK : INSTANCE_HOME = /home/ins >> tances/xxx/parts/instance, CLIENT_HOME = /home/instances/xxx/var/instance >> >> But when I "pdb" in the unit tests : >> (Pdb) import os >> (Pdb) os.environ['CLIENT_HOME'] >> '/home/instances/xxx/eggs/var' >> (Pdb) os.environ['INSTANCE_HOME'] >> '/home/instances/xxx/eggs' >> >> Did I miss something important ? Here's the zope.recipe.testrunner part that >> makes the unit tests command : >> > > These variables are available in the builtin namespace also. May be you > can see what > > (Pdb) p INSTANCE_HOME
-> '/home/instances/xxx/eggs' Same problem. My component needs to read a config file which is in $INSTACE_HOME/etc/stuff.cfg. This file is built from buildout using a template recipe (amplecode.recipe.template). I'm stuck unless I copy that config file to $INSTANCE_HOME/eggs/etc/stuff.cfg which is somehow dirty. Thanks -- Gilles _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
