Import module with non-standard file name

Miki miki.tebeka at gmail.com
Tue Aug 8 15:23:26 EDT 2006


Hello Ben,

> Question: I have Python modules named without '.py' as the extension,
> and I'd like to be able to import them. How can I do that?
http://docs.python.org/lib/module-imp.html (hint: load_source :)

HTH,
Miki
http://pythonwise.blogspot.com/




More information about the Python-list mailing list