<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:D="DAV:" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.gmailquote
        {mso-style-name:gmail_quote;}
span.ad
        {mso-style-name:ad;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>You are passing the assembly name to AddReference? You should be
able to pass the actual Assembly object you get back from reflection instead.
Then if you import the namespaces in the file you’re executing it should use
the assembly objects you actually loaded yourself.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
users-bounces@lists.ironpython.com [mailto:users-bounces@lists.ironpython.com] <b>On
Behalf Of </b>Blesson Varghese<br>
<b>Sent:</b> Friday, November 24, 2006 9:11 PM<br>
<b>To:</b> Discussion of IronPython<br>
<b>Subject:</b> Re: [IronPython] How to bring modules in same scope??<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<p class=MsoNormal>I know it will work if I use clr. AddReference..... But my
project has to do all this from C# code. Via reflection I load all
assemblies from a directory. These are loaded by using the statement
clrmodule.AddReference(assembly name).<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>And then when I get the IronPython Exception stating No
moduled named assembly was found.......<br>
<br>
<b><i>Simon Dahlbacka <simon.dahlbacka@gmail.com></i></b> wrote:<o:p></o:p></p>
</div>
<blockquote style='border:none;border-left:solid #1010FF 1.5pt;padding:0in 0in 0in 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-bottom:5.0pt'>
<p class=MsoNormal style='margin-bottom:12.0pt'>so what about reading the
responses you've got, and skip Reflection and do use clr.AddReference ?<o:p></o:p></p>
<div>
<p class=MsoNormal><span class=gmailquote>On 11/24/06, <b>Blesson Varghese</b>
<<a href="mailto:blssnvarghese@yahoo.co.in"> blssnvarghese@yahoo.co.in</a>>
wrote:</span> <o:p></o:p></p>
<div>
<p class=MsoNormal>Hi,<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>I have loaded a few dll's using Reflection from a particular
library. I have used the sys.path.append(directory name) also. I have handled
all the exceptions too. Now I want to run some scripts that make use of these
assemblies loaded. For this I execute the script file using ExecuteFile.
But I understand that though the modules were loaded previously it raises
exception stating that no modules. After reading a few documents I
understand that the possible problem is that they could have been executed on
different module scopes. I am pretty new to IronPython... <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>Pls suggest a way....<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>Thanks for all help<o:p></o:p></p>
</div>
<div class=MsoNormal align=center style='text-align:center'><span class=ad>
<hr size=1 width="100%" align=center>
</span></div>
<p class=MsoNormal><span class=ad>Find out what India is talking about on - <a
href="http://us.rd.yahoo.com/mail/in/yanswers/*http:/in.answers.yahoo.com/"
target="_blank">Yahoo! Answers India</a> </span><br>
<span class=ad>Send FREE SMS to your friend's mobile from Yahoo! Messenger
Version 8. <a
href="http://us.rd.yahoo.com/mail/in/messengertagline/*http:/in.messenger.yahoo.com"
target="_blank">Get it NOW</a> <o:p></o:p></span></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.ironpython.com">users@lists.ironpython.com</a> <br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com"
target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
<br>
<o:p></o:p></p>
</div>
<p class=MsoNormal><br>
_______________________________________________<br>
users mailing list<br>
users@lists.ironpython.com<br>
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com<o:p></o:p></p>
</blockquote>
<p class=MsoNormal><o:p> </o:p></p>
<p> <o:p></o:p></p>
<div class=MsoNormal align=center style='text-align:center'>
<hr size=1 width="100%" align=center>
</div>
<p class=MsoNormal>Find out what India is talking about on - <a
href="http://us.rd.yahoo.com/mail/in/yanswers/*http:/in.answers.yahoo.com/">Yahoo!
Answers India</a> <br>
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. <a
href="http://us.rd.yahoo.com/mail/in/messengertagline/*http:/in.messenger.yahoo.com">Get
it NOW</a><o:p></o:p></p>
</div>
</body>
</html>