title: How to configure IronPython.StdLib 2.7.3
body: <p>I am not able to get compiled version of the StdLib to work.</p>
  
  <p>I created an empty visual studio project (called StdLib) and using NUGET loaded with the latest (v2.7.3)IronPython.StdLib which creates a Lib folder in my project with all of the .py scripts. The build action of these files are set to "content" by default but tried compiling both with that setting and "embedded resource".</p>
  
  <p>in my py script I have:</p>
  
  <pre class="lang-py prettyprint-override"><code>import clr
  clr.AddReference("StdLib")
  
  import os
  </code></pre>
  
  <p>it finds the Assembly but throws "os module not found" error.</p>
  
  <p>if I package the standard library files as just loose files in the build folder and do the following it works.</p>
  
  <pre class="lang-cs prettyprint-override"><code>var runtime = Python.CreateRuntime();
  
  var engine = Python.GetEngine(runtime);
  engine.SetSearchPaths(new string[] { Path.GetDirectoryName(
      Assembly.GetExecutingAssembly().Location) + @"\Lib" });
  
  ////load the script
  dynamic script = runtime.UseFile(ParserScriptPath);
  
  //execute the script
  var result = script.main("result");
  </code></pre>
  
  <p>My question is </p>
  
  <ol>
  <li><p>can you compile the standard library into a .Net Assembly through Visual Studio? </p></li>
  <li><p>If so what should the build action be for the .py code files in the Lib folder? </p></li>
  <li><p>Then what is the proper method to reference the Assembly so as not to fail when trying to import standard library modules?</p></li>
  </ol>
  
  <p>I have reviewed the following post: <a href="https://stackoverflow.com/questions/6195781/ironpython-exe-compiled-using-pyc-py-cannot-import-module-os/6205193#6205193">IronPython: EXE compiled using pyc.py cannot import module &quot;os&quot;</a></p>
  
  <p>but don't actually have the IronPython installed and not quite sure if that's the way to go about it. I used NUGET to add both the IronPython and IronPython.StdLib directly to my project. I assumed because I can add the IronPython.StdLib directly to my project via NUGET I could just compile it and reference it.</p>