title: dist-packages and sys.path
body: <p>I have some code inside myapplication that look for some files inside myapplications' directories. I'm working with AptanaStudio, and I see that my code run OK, but when I create the debian package and I install it in another computer the search is unsuccessful because sys.path look like a different list.</p>
  
  <p>From Aptana execution <em>sys.path</em> includes the path to the executable directory (/mysvncopy/myapplication) and I believe my code finds the files this way. </p>
  
  <p>The application's installation leave this files at <em>/usr/share/pyshared/myapplication</em> and I thought this directory is automatically accessible regards to <em>/usr/local/lib/python2.6/dist-packages</em> in <em>sys.path</em>, but something is wrong, <em>/usr/local/lib/python2.6/dist-packages</em> IS in <em>sys.path</em>, of course, but the application do not find anything inside <em>/usr/share/pyshared/myapplication</em>.</p>
  
  <p>How can I assure the application know to look for inside <em>/usr/share/pyshared/myapplication</em> and equivalent inside windows and mac?.</p>
  
  <p>If I include in my code:</p>
  
  <pre><code>&lt;sys.path.append('/usr/share/pyshared/myapplication')
  </code></pre>
  
  <p>the search is succesfull, but this code is S.O. dependent.</p>
  
  <p>I can paste setup.py if necessary.</p>
  
  <p>Thanks</p>