title: Jenkins: putting my Python module on the PYTHONPATH
body: <p>I am using Jenkins to test a Python module <a href="https://github.com/ketch/nodepy" rel="nofollow"><code>nodepy</code></a> that I develop.  However, I get errors like the following:</p>
  
  <pre><code>File "/var/lib/jenkins/jobs/NodePy/workspace/convergence.py", line 6, in workspace.convergence
  Failed example:
      from nodepy import rk, convergence, ivp
  Exception raised:
      Traceback (most recent call last):
        File "/usr/lib/python2.7/doctest.py", line 1289, in __run
          compileflags, 1) in test.globs
        File "&lt;doctest workspace.convergence[0]&gt;", line 1, in &lt;module&gt;
          from nodepy import rk, convergence, ivp
      ImportError: No module named nodepy
  </code></pre>
  
  <p>How do I set the PYTHONPATH in Jenkins (so that my module is importable)?</p>
  
  <p>I'm not even sure which directory I should add.  It seems that Jenkins puts things in jenkins/jobs/nodepy/workspace/, so the directory doesn't even have the right name for python to find it.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>The python module <a href="https://github.com/ketch/nodepy" rel="nofollow"><code>nodepy</code></a> is a <code>git</code> repository that I have configured my jenkins job to watch and checkout.</p>