ImportError depending on the calling module

Samuel knipknap at
Thu Sep 6 18:22:39 CEST 2007

On Sep 6, 6:13 pm, Samuel <knipk... at> wrote:
> Why does it matter whether I install it in sys.path or whether
> sys.path is modified? What's the difference?
> What I am doing is I ship two modules in one tarball with my software.
> The software is only unpacked and ran. It has to work without
> installation.

I see now how this works; when a script is ran, only the top-level of
the current module is searched. Now that's just ugly, but well... at
least I now know how to work around this.


More information about the Python-list mailing list