My <span style="font-family:courier new,monospace">.bashrc</span> includes the following:<br><br><span style="font-family:courier new,monospace">PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/dist-packages<br>PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/dist-packages/offlineimap/repository<br>
PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/dist-packages/offlineimap/folder<br>PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/dist-packages/offlineimap/ui<br>PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/dist-packages/offlineimap/;export PYTHONPATH<br>
</span><br>And then I issued a <span style="font-family:courier new,monospace">. .bashrc</span> command before trying to call offlineimap from an arbitrary location.<br><br>And, indeed, <span style="font-family:courier new,monospace">python -c 'import sys; print sys.path'</span> includes the above paths in its output list.<br>
<br><div class="gmail_quote">On 25 August 2012 05:48, Zoltan Szalontai <span dir="ltr"><<a href="mailto:offlineimap@szazol.hu" target="_blank">offlineimap@szazol.hu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Benjamin<br>
<div class="im"><br>
On Fri, Aug 24, 2012 at 05:05:02PM -0500, Benjamin Slade wrote:<br>
> Thanks, Nicolas.<br>
><br>
</div>> I tried PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/dist-packages but it's still not finding it if I run from outside the offlineimap directory itself....<br>
<br>
Did you export the PYTHONPATH variable?<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Zoltan Szalontai<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>-----------------------------------------------------------------------------------------------------<br><font><span style="font-family:times new roman,serif">Dr Benjamin Slade </span></font><font><span style="font-family:times new roman,serif">[</span><a style="font-family:times new roman,serif" href="http://ling.uta.edu/%7Eben/%20" target="_blank">http://ling.uta.edu/~ben/</a><span style="font-family:times new roman,serif">]</span></font><b><font><br>
</font></b><font><span style="font-family:times new roman,serif"></span><span style="font-family:times new roman,serif"></span><span style="font-family:times new roman,serif">Dept. of Linguistics & TESOL - University of Texas at Arlington </span><br style="font-family:times new roman,serif">
</font>-----------------------------------------------------------------------------------------------------<br><font><font size="1"><span style="font-family:tahoma,sans-serif">Stæfcræft & Vyākaraṇa (lingblog) - </span><a style="font-family:tahoma,sans-serif" href="http://staefcraeft.blogspot.com/" target="_blank">http://staefcraeft.blogspot.com</a><br style="font-family:tahoma,sans-serif">
<span style="font-family:tahoma,sans-serif">The Babbage Files (techblog) - </span><a style="font-family:tahoma,sans-serif" href="http://babbagefiles.blogspot.com/" target="_blank">http://babbagefiles.blogspot.com</a></font></font><br>
-----------------------------------------------------------------------------------------------------<br><span style="font-family:georgia,serif">Ongietan sceal gleaw hæle hu gæstlic bið,</span><br style="font-family:georgia,serif">
<span style="font-family:georgia,serif">þonne ealre þisse worulde wela weste stondeð.</span><br style="font-family:georgia,serif"><span style="font-family:georgia,serif"> --</span><i style="font-family:georgia,serif">The Wanderer</i><span style="font-family:georgia,serif">, ll. 73-4.</span><br>
-----------------------------------------------------------------------------------------------------<br><span style="font-family:courier new,monospace"><span style="font-family:georgia,serif">"While corporations dominate society and write the </span><span style="font-family:georgia,serif">laws,<br>
each advance in technology is an opening for</span><span style="font-family:georgia,serif"> them<br> to further restrict its users."</span><br style="font-family:georgia,serif"><span style="font-family:georgia,serif"> --Stallman's Law</span><br>
</span>-----------------------------------------------------------------------------------------------------<br><span style="font-family:courier new,monospace"><b><font size="1"> {Choose freedom: choose <a href="http://www.gnu.org" target="_blank">GNU</a> & <a href="http://www.whylinuxisbetter.net" target="_blank">Linux</a>.}</font></b></span><br>
<br>