[IronPython] Embedding Question

Dino Viehland dinov at exchange.microsoft.com
Thu Aug 10 20:21:12 CEST 2006


Adding references updates the entire engine, it's not local to just the current module.  So once you have added a reference you just need to import the namespace into any given module.

Were you also trying to avoid the import statements?

From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Tim Riley
Sent: Thursday, August 10, 2006 11:02 AM
To: Discussion of IronPython
Subject: [IronPython] Embedding Question

If I have an embedded project can I automatically make .NET assemblies referenced in the project available to my python scripts? For example I have two assemblies(not in the GAC) that I have referenced in my project. I would like them always available to all python files run from this program without having to do the import clr, clr.AddReferenceToFileAndPath('blah') stuff in the beginning of each file. Is this possible?


Regards,
Tim Riley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20060810/ec41c644/attachment.html>


More information about the Ironpython-users mailing list