On Tue, Feb 16, 2010 at 3:31 PM, Tibor Simko <[email protected]> wrote:
> On Tue, 16 Feb 2010, Victor Engmark wrote:
>> Because now it always imports from dist-packages, so every time I want
>> to run a unit test I have to copy the code over there, or risk getting
>> unexpected results.
>
> Yes, that's what is usually done.  E.g. when hacking on the search
> engine, one is in `websearch/lib/' and does `make install' prior to
> running `python ./search_engine_tests.py --yes-i-know'.

OK, I guess this is another one for after 1.0. Since relative imports
are supported, I guess* it should be just a matter of renaming:
from ..websubmit.websubmit_config import foo

* I've never used relative imports.

-- 
Victor Engmark

Reply via email to