How to resolve a python module import collision?
<p>This is similar to <a href="http://stackoverflow.com/questions/1399896/import-failed-when-the-module-is-already-in-the-sys-path">this question</a>, but that one doesn't propose a solution.</p>

<p>I have ~/google_appengine/google/appengine and i have /usr/lib64/python2-7/site-packages/google/protobuf. </p>

<p>I can't "import google.appengine" since the other google folder gets in the way. How do i fix this?</p>

<p>Here's a minimal example and error:</p>

<pre><code>$ python
Python 2.7.3 (default, Jun 12 2012, 13:50:02) 
[GCC 4.5.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
&gt;&gt;&gt; import google.appengine
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
ImportError: No module named appengine
</code></pre>

<p>As requested, here's my sys.path:</p>

<pre><code>['', '/usr/lib64/python2.7/site-packages/nose-1.1.2-py2.7.egg', '/usr/lib64/python2.7/site-packages/mock-0.8.0-py2.7.egg', '/usr/lib64/python2.7/site-packages/coverage-3.5.1-py2.7-linux-x86_64.egg', '/usr/lib64/python2.7/site-packages/rosinstall-0.6.11-py2.7.egg', '/usr/lib64/python2.7/site-packages/vcstools-0.1.12-py2.7.egg', '/home/murph/google_appengine', '/home/murph/google_appengine/google/appengine', '/home/murph/google_appengine/google', '/home/murph/ros/ros/core/roslib/src', '/usr/lib/portage/pym', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', '/usr/lib64/python2.7/site-packages/PIL', '/usr/lib64/python2.7/site-packages/gst-0.10', '/usr/lib64/python2.7/site-packages/gtk-2.0', '/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode', '/usr/lib64/portage/pym']
</code></pre>

<p>And this showing which 'google' it's importing:</p>

<pre><code>$ python
Python 2.7.3 (default, Jun 12 2012, 13:50:02) 
[GCC 4.5.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
&gt;&gt;&gt; import google
&gt;&gt;&gt; print google.__path__
['/usr/lib64/python2.7/site-packages/google']
</code></pre>
