[Tutor] python import problem

kakada hokkakada at khmeros.info
Wed Aug 9 10:36:05 CEST 2006


Hi all,

I have problem with import statement.

supposed that I have two files in different folders : modules/myfile.py
and translate/factory.py.


the folders modules and translate are in the same level, so if I want to
import factory.py into myfile.py, how can I do?


I have already done in myfile.py:

from translate import factory

but it is still not work. Any solution?

Thanks and regards,
da


More information about the Tutor mailing list