[Tutor] Import modeuls

arsyed arsyed at gmail.com
Mon Jul 21 10:06:21 CEST 2008


On Mon, Jul 21, 2008 at 3:46 AM, Oleg Oltar <oltarasenko at gmail.com> wrote:

> If I am adding, __init__.py it still doesn't import anything.
> Do I have add the import (from sampletest import EmailWithoutA) in my init
> file?
>
>

I didn't notice this before, but I don't think python does tilde expansion
in sys.path. Try using an absolute path, for example:

sys.path.insert(0, "~/folder")

to

sys.path.insert(0, "/home/user/folder')
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080721/de81d856/attachment.htm>


More information about the Tutor mailing list