How to export PYTHONPATH when I activate a virtual environment on pyenv-virtualenv?
<p>I am using <a href="https://github.com/yyuu/pyenv" rel="nofollow">pyenv</a> and its plugin <a href="https://github.com/yyuu/pyenv-virtualenv" rel="nofollow">pyenv-virtualenv</a>.</p>

<p>My questions is: How to modify PYTHONPATH environment variable when I activate some virtual environment on pyenv-virtualenv?</p>

<pre><code>$ pyenv activate myenv
$ echo $PYTHONPATH  # I want this variable!
</code></pre>

<p>When I used simple virtualenv, I could modify PYTHONPATH via editing <code>virtualenv_home/your_env/bin/activate</code></p>

<pre><code>export OLD_PYTHONPATH=$PYTHONPATH
export PYTHONPATH="/path/to/you/want"
</code></pre>

<p>Which file should I edit for pyenv-virtualenv?</p>