Adding folder to Python's path permanently
<p>I've written a library in python and I want it to reside in a common location on the file system.</p>

<p>From my script, I just want to do:</p>

<pre><code>&gt;&gt;&gt; import mylib
</code></pre>

<p>Now I understand that in order to do this, I <em>can</em> do this:</p>

<pre><code>&gt;&gt;&gt; import sys
&gt;&gt;&gt; sys.path.append(r'C:\MyFolder\MySubFolder')
&gt;&gt;&gt; import mylib
</code></pre>

<p>But I don't want to have to do that every time. </p>

<p>The question is: How do I add a folder to python's sys.path permanently? I would imagine that it would be an environment variable, but I can't find it. </p>

<p>It seems like it should be easy, but I can't find out how to do it.</p>
