[IronPython] Importing embedded .py files

Dino Viehland dinov at exchange.microsoft.com
Wed Jul 5 18:29:24 CEST 2006


I've opened a bug on CodePlex (bug 775 http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=775) to implement PEP-302 which seems to be the new version of ihooks (it says no one was satisfied w/ ihooks).  I've opened it as a post-1.0 bug.



-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Jonathan Jacobs
Sent: Tuesday, July 04, 2006 10:22 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Importing embedded .py files

Nathan R. Ernst wrote:
> Out of curiosity, is there any sort of hook into the engine that would
> allow you search for a module on your own?  e.g. a search of sys.path
> did not find

I'm not sure how well this is going to work with IronPython, but in CPython you're advised to use ihooks (http://pydoc.org/2.4.1/ihooks.html), which is a pure Python module in the stdlib, to write your own import hooks.

--
Jonathan

_______________________________________________
users mailing list
users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Ironpython-users mailing list