[Tutor] importing path question

dave selby dave6502 at googlemail.com
Sun Aug 10 00:03:22 CEST 2008


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 ?

Dave






-- 

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


More information about the Tutor mailing list