title: ImportError while importing a python module in a pyd
body: <p>Alright, so, what I'm trying to do is import a module in folders packed inside of a .pyd file. Here is something that would work for me:</p>
  
  <pre><code>from apple import __init__
  </code></pre>
  
  <p>With apple being the .pyd in the same directory as the Python script, and __init__ of course being packed inside of the .pyd. This would work, however here is what I want to do, but doesn't work:</p>
  
  <pre><code>from apple.seed.worm import WormManager
  </code></pre>
  
  <p>Explanation: apple = pyd, seed = directory in the pyd, worm = directory in seed directory in apple pyd, WormManager = python module in the worm directory.</p>
  
  <p>However, it does not work, and results in a module not found ImportError thinking that seed is a module (and there was an __init__ inside of the seed directory before it was packed). Of course it exists and is packed in the .pyd, but it simply does not work. I even did this:</p>
  
  <pre><code>from apple.seed import __init__
  </code></pre>
  
  <p>but not even that works so I know that I'm not importing this right.</p>
  
  <p>I really could not find the correct syntax for getting this to work on the internet, and of course I know how to do this without a pyd involved. I could really appreciate help with this because I'm really struggling and I really need this done for a job.</p>
  
  <p>Note: I'm not talking about the pyd library, I'm talking about a .pyd file (like a .dll).</p>