title: pdb: set a breakpoint on file which isn't in sys.path
body: <p>I'm writing a python package and I want to use pdb to debug it. When I try to set break point in one of the files, I get an error:</p>
  
  <pre><code>The specified object 'CaptureManager.frame' is not a function or was not found along sys.path
  </code></pre>
  
  <p>I googled it, and found a solution:</p>
  
  <p>append the directory which contains my file into sys.path</p>
  
  <pre><code>sys.path.append(os.path.join(os.getcwd(),"project_cameo"))
  </code></pre>
  
  <p>But after few times, I get very annoyed, because I have to do it every time I restart my debug session. Is there a 'smart' way of doing it? </p>