<div dir="ltr"><div class="gmail_quote">On Sun, Aug 3, 2008 at 8:39 AM, Pavel Šavara <span dir="ltr">&lt;<a href="mailto:pavel.savara@gmail.com">pavel.savara@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d">&gt; With Silverlight you can use the Platform Adaptation Layer to control<br>&gt; imports though. The DLR hosting specs has some details on this (Silverlight<br>&gt; uses the PAL so that imports are resolved by searching inside the xap file -<br>
&gt; a modified PAL could ban imports altogether).<br><br></div>I looked at your articles about that on voidspace. Unfortunately in<br>last sdl-sdk things look different.<br>There is no direct way how to change PAL anymore.</blockquote>

<div>&nbsp;</div>
<div>In what will be released shortly as the next beta of IronPython, you replace the PAL by deriving a custom class from ScriptHost and overriding the PlatformAdaptationLayer property.&nbsp; When you create a ScriptRuntime, you specify the host by setting ScriptRuntimeSetup.HostType to equal the type of your derived class.&nbsp; That&#39;s exactly what the Microsoft.Scripting.Silverlight project does.</div>

<div>&nbsp;</div>
<div>It&#39;s quite possible that this was already how it worked in the previous beta, but I don&#39;t have those sources handy.</div>
<div>&nbsp;</div>
<div>--</div>
<div>Curt Hagenlocher</div>
<div><a href="mailto:curt@hagenlocher.org">curt@hagenlocher.org</a></div></div></div>