title: Is there a way to import an embedded python script into IronPython as a python module?
body: <p>I have an embedded resource in my dll which is a python script. I'd like to make the classes and functions in that resource available to the python engine, so I can execute external .py files (as <code>__main__</code>) which would be able to do something like</p>
  
  <pre><code>import embedded_lib # where embedded_lib is an embedded python script
  </code></pre>
  
  <p>Is there a way to accomplish this? I was hoping there will be some sort of <code>IronPython.ImportModule('module_name', source)</code> so I've looked through IronPython docs and couldn't find anything, but I'm hoping I'm just bad at looking.. Maybe there is some way to intercept a call to <code>import</code> and load my script that way?</p>