[Tutor] How to import a module which was not in the current working directory?
kakada
hokkakada at khmeros.info
Sat May 27 03:50:59 CEST 2006
Hi Linda,
Let say you have a tool named convert.py and other module
(processing.py) in modules folder.
In modules folder create an empty file named __init__.py
In convert.py do:
from modules import processing.py
It would work.
da
linda.s wrote:
> Hi,
> How to import a module which was not in the current working directory?
> Thanks,
> Linda
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
More information about the Tutor
mailing list