[Tutor] How to import a module which was not in the currentworking directory?

Alan Gauld alan.gauld at freenet.co.uk
Sat May 27 11:01:57 CEST 2006


> In modules folder create an empty file named __init__.py
> In convert.py do:
> from modules import processing.py

from modules import processing

don't include the .py

Also the modules folder still needs to be in sys.path

Alan G





More information about the Tutor mailing list