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@python.org
> http://mail.python.org/mailman/listinfo/tutor
>   

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to