[Python-Dev] [python] Re: import file extensions
fuzzyman at voidspace.org.uk
Fri Sep 14 23:17:06 CEST 2007
Guido van Rossum wrote:
> I think you're looking for a PEP 302 style meta hook.
Or even execfile in a context...
> On 9/14/07, tomer filiba <tomerfiliba at gmail.com> wrote:
>> a quick question: i'm working on a pythonic build system, where the
>> scripts are plain python files. but i want to differentiate them from
>> python files (.py) by a different suffix (say .pyy), but then i can't
>> so i'm wondering, is there a quick way to just add another extension
>> import mechanism? or do i have to write a fully fledged import hook?
>> Python-Dev mailing list
>> Python-Dev at python.org
>> Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org
More information about the Python-Dev