title: pickle can't import a module that exists?
body: <p>Why might this happen? </p>
  
  <pre><code>import window; print "LOADED"; data = cPickle.loads(data)
  </code></pre>
  
  <p>The result is:</p>
  
  <pre><code>LOADED
  Traceback (most recent call last):
  ...
      import window; print "LOADED"; data = cPickle.loads(data)
  exceptions.ImportError: No module named window
  </code></pre>
  
  <p>It loads the module fine if I do <code>import window</code>, but when loading with <code>cPickle</code> it doesn't seem to work.</p>
  
  <p>For some additional info which is likely relevant:</p>
  
  <p>The module I saved the file in is in <code>project1\MODULE\submodule\main.py</code>. The <code>window</code> module is <code>project1\MODULE\window.py</code>. <code>main.py</code> begins:</p>
  
  <pre><code>import sys
  sys.path.append("..\\..")
  sys.path.append("..")
  ...
  import window
  </code></pre>
  
  <p>The module I'm attempting to load from is in <code>project2\project2sub\MODULE\data.py</code>, with no messing with the <code>sys</code> path. </p>
  
  <p><code>MODULE</code> is the same in both cases: the module I want to load is <code>project2\project2sub\MODULE\window.py</code>. </p>
  
  <p>Could the <code>sys.path</code> appending mess this up somehow?</p>