<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Dino,</span><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br>
</span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Thanks for the reply. Actually, I did have an error in the string, and I fixed that. But the real problem seems to be with the &quot;Import&quot; statement. I put my common methods in a file that I then import into the various Python script files.</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">It makes sense that the script would error, since, as a string, it doesn&#39;t know how to handle the import. </span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">It seems like the only way to go would be to replace the PlatformAdaptionLayer class as you suggest -- but to be honest, I don&#39;t even know where to begin with that.</span><div>
<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Dino Viehland Wrote:</span><div>
<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">&gt;Are the \r and \n getting escaped somehow?  There should be no problem if the new lines are in the string the same as they would be in a file.<br>
&gt;<br>&gt;Your solution generally sounds like the right and easy one to go with.  If you wanted a more complicated solution you could replace the PlatformAdaptionLayer class &gt;with your own which would read &quot;files&quot; from the database.  That would enable things like &quot;import foo&quot; to work where the user could define a &quot;foo&quot; script in the database.<br>
</span></div></div></div>