title: Import Python Module through C# .NET using IronPython
body: <p>I am trying to run a Python class through C# .NET using IronPython, a couple of the Modules imported by the Python class are:</p>
  
  <pre><code>import collections
  import nltk.classify.util
  </code></pre>
  
  <p>In order to import these when running IronPython, I am using the <strong>GetSearchPath</strong> collection of the <strong>ScriptEngine</strong> to add the path to the location of the Python library, as such:</p>
  
  <pre><code>ICollection&lt;string&gt; paths = pyEngine.GetSearchPaths();
  string dir = @"C:\Python27\Lib\";
  paths.Add(dir);
  string dir2 = @"C:\Python27\Lib\site-packages\nltk\classify\";
  paths.Add(dir2);
  pyEngine.SetSearchPaths(paths);
  </code></pre>
  
  <p>This seems to run fine for the <strong>collections</strong> Module, but not the <strong>nltk.classify.util</strong>, and I get the following error when calling the Execute method of the ScriptEngine:</p>
  
  <p><strong>No module named nltk.classify.util</strong></p>
  
  <p>Even tho the util module lives in the path specified above. I take it the issue has to do with the way the import is specified in the Python class ('.' delimited), just not sure how to solve it. Any ideas where am going wrong?</p>