importing with .m instead of .py

Andrew Svetlov andrew.svetlov at gmail.com
Fri Sep 25 14:05:00 EDT 2009


On Sep 25, 1:16 pm, Wanderer <wande... at dialup4less.com> wrote:
> execfile(x) does what I'm looking for.
>

Perhaps you are looking for Python import hook: http://www.python.org/dev/peps/pep-0302/

In you import hook you can do everything (and locate/import file with
any extension :)



More information about the Python-list mailing list