durusmail: qp: Re: QP Digest, Vol 21, Issue 2
Re: QP Digest, Vol 21, Issue 2
2007-07-19
2007-07-19
Re: QP Digest, Vol 21, Issue 2
David Binger
2007-07-19
On Jul 19, 2007, at 1:33 PM, Ernesto Adorio wrote:

>
> > It looks like you must somehow be getting
>     '/home/toto/qp_sites'
> > instead of
>     '/home/toto/qp_sites/extreme'
> . from a call to
>     Site('extreme').get_package_directory()
> >Is that correct?
>
> What do you get from the following?
>    import qp.sites.extreme
>    print qp.sites.extreme.__path__
>
> I get both.
>  >>> import qp.sites.extreme
> >>> print qp.sites.extreme.__path__
> ['/home/toto/qp_sites', '/home/toto/qp_sites/extreme']

Okay, we are getting closer.
When I do this with my sites, the __path__ list only has one
value, and it is the correct one.

Does your /home/toto/qp_sites/extreme/__init__.py
or your  /home/toto/qp_sites/__init__.py
contain anything that might modify the __path__ list?


reply