On Sun, Dec 7, 2014 at 9:50 AM, sam pendleton <samp4...@gmail.com> wrote:
> Having to put the garage package on the sys.path seems a little off,
> why wouldn't relative imports work?

Relative imports are relative to a package's hierarchy of namespaces, not
relative to the file system. As such, you can't perform a relative import
of a module that isn't in the same top-level package (and besides this, the
import statement that you posted was an absolute import anyway).

All top-level packages have to be on sys.path, or the import system won't
be able to find them.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to