On Sat, Aug 9, 2008 at 6:03 PM, dave selby <[EMAIL PROTECTED]> wrote: > Hi all, > > I have a main directory 'kmotion2' where python scripts live. They > access a library of scripts in 'kmotion2/core' as 'kmotion2/core' has > a __init__.py file. However I now need to create a new directory > 'utilities' inside 'kmotion2' that also needs to access scripts in > 'core' > > kmotion2 directory > | | > core utilities > > So I need to import up the tree then back down. Is this possible ?
Yes, assuming kmotion2 is in your Python path (which it should be to allow importing from core at all) you can just import core.whatever as usual. Kent _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
