title: Adding a path to sys.path in python and pylint
body: <p>So. I'm aware that this question seems to have been asked to death, but none of the answers seem to address what <em>I</em> want to do.</p>
  
  <p>I have a library in another directory that I want to include in a set of <em>other</em> projects that I run. I don't want that library added <em>every</em> time I run python..</p>
  
  <p>So, what I <em>had</em> been doing was this in my python code:</p>
  
  <pre><code>import sys
  sys.path.append("/tmp/demo/src/my-lib")
  import MyClass
  </code></pre>
  
  <p>and this worked fine. But, now that I've discovered and love pylint, it complains that</p>
  
  <pre><code>E:  7, 0: Unable to import 'MyClass' (import-error)
  C:  7, 0: Import "import MyClass" should be placed at the top of the module (wrong-import-position)
  </code></pre>
  
  <p>I know I could just disable import-error and wrong-import-position with a directive (or just by putting it into .pylintrc...) But, I'd rather not. I'd like to know the "right" way of adding a path to sys.path that's not <em>global</em> to <em>all</em> my projects, just to the subset of projects that use that particular library.</p>
  
  <p>Is this possible?</p>