Project organization and import

Martin Unsal martinunsal at gmail.com
Tue Mar 6 18:24:32 CET 2007


On Mar 6, 8:56 am, "Chris Mellon" <arka... at gmail.com> wrote:
> Scrollbar *can't* assume that util will be present in its namespace,
> because it won't be unless it imports it. Scrollbar needs to import
> its own dependencies. But why do you think thats a problem?

OK, maybe I'm totally missing something here, but you can't do
"import ../util/common" in Python can you?

Look at the directory structure in my original post. How does
Scrollbar.py import its dependencies from common.py, without relying
on PYTHONPATH?

Martin




More information about the Python-list mailing list