Re: [Tutor] Importing from directories below yourself...

2005-06-21 Thread Kent Johnson
lawrence wang wrote: > Say I have a directory tree like this: > > foo > - bar > -- quux.py > - baz > -- glonk.py > >>From within glonk.py, how do I import quux.py? I've tried going to > foo, running baz/glonk.py, and using "from bar import quux", but this > doesn't seem to work. You need a fil

[Tutor] Importing from directories below yourself...

2005-06-21 Thread lawrence wang
Say I have a directory tree like this: foo - bar -- quux.py - baz -- glonk.py >From within glonk.py, how do I import quux.py? I've tried going to foo, running baz/glonk.py, and using "from bar import quux", but this doesn't seem to work. Thanks in advance! Lawrence