I have a series of Python scripts that I am running from my C# program. <div><br></div><div>I use the CreateScriptSourceFromFile() method to read in the file and execute it. <div><br></div><div>I would like, however, to move these scripts to a databse file -- simply a large memo/text field containing the full script, and then execute them from there instead of the file (to simplify my management).</div>
<div><br></div><div>I thought I could just convert the python file to a string, save it, and then bring it back with CreateScriptSourceFromString() instead. But the parser doesn&#39;t seem to like the embedded \r, \n. \t, etc. </div>
<div><br></div><div>Is there a simple way of accomplishing this that is escaping me? Has anyone ever done anything similar?</div><div><br></div><div>Thanks!</div><div><br></div><div>-Mark Grice</div><div><br></div><div><br>
</div></div>