How do i add a python package path during runtime
<p>Here is a scenario, i hope you can help me with.</p>

<p>I have python unit tests in <code>/home/k/PR-TEST/Pr/test</code></p>

<pre><code>kahmed@qatools:~/PR-TEST/Pr-test$ ls
_apache.py        archive  clienttest  decorators.py   fakeTecoreClient.py  fixtures.pyc     psqlharness.py  servertest   testhelp.pyc  testutils.pyc
apache_server.py  cache    commontest  decorators.pyc  fixtures.py          mysqlharness.py  runtests.sh     testhelp.py  testutils.py
</code></pre>

<p>and have the package that i am actually running tests against @ <code>/home/k/PR/Pr</code> named  (directory named) pref</p>

<pre><code>kahmed@qatools:~/PR/Pr$ pwd
/home/kahmed/PR/Pr
kahmed@qatools:~/PR/Pr$ ls
bin  conf  images  init.d  iped  logrotate.d  NEWS  pref  rpa  sbin  scripts  src  test  VERSION
</code></pre>

<p>Now, i <code>cd to ~/PR-TEST/Pr-test</code>, and run:</p>

<pre><code>nosetests -s --with-coverage --cover-package /home/k/PR/Pr/pref  `find . -name "*test.py"`
</code></pre>

<p>but i get erros that it cannot find the packages in pref</p>

<p>Any idea how to resolve this ?</p>

<p>I have to make sure that the python environment knows about the package pr</p>
