You are right, thank you again.
I changed the imports all to 'import bots.xxx'.

(mostly I'm using puthoon2.4, I tested 2.5).
I think I'm beginning to see why this is.

kinds regard, Henk-Jan

Phillip J. Eby wrote:
At 10:27 PM 5/15/2007 +0200, henk-jan ebbers wrote:
You are right on both points.
thank you. this works.
I am a bit surprised that I should use 'import transform.py' in the /bots/ directory,

You should not.  In Python 2.6 and 3.0 it will not work any more. Use "import bots.transform" or "from bots import transform" instead.


and 'import bots.transform' in the /mapping/ directory.

Under Python 2.5, you also have the option of doing 'from .. import transform' to import the transform module from the package above you, or 'from . import transform' to import it from the package you are in.

See PEP 328 at http://www.python.org/dev/peps/pep-0328/ for more info.


_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to