title: virtualenv on Windows, activate/deactivate events/hooks
body: <p>I am working on Windows (sadface) with Python and virtualenv.</p>
  
  <p>I would like to have <em>setup</em> and <em>teardown</em> scripts that go along with the virtualenv activation/deactivation. But I am not sure if these hooks have already been designated, and if so, where?</p>
  
  <p>I guess I could hack the activate.bat, but then what if I use activate.py instead (does activate.py call activate.bat, or must I hack both files)? I can almost get away with environment variable PYTHONSTARTUP, but this needs to be redefined in each virtualenv. So unless virtualenv allows arbitrary assignment of env-vars, I am back to an activation/deactivation hook to set PYTHONSTARTUP (which really defeats the purpose, but now you see my catch-22).</p>
  
  <p>EDIT: I plan to use my virtualenv to host interactive development sessions. I will be calling 'venv/bin/activate.bat' manually from the terminal. I do not want loose Batch/Powershell scripts laying around that I have to remember to call once when I activate, and once again when I deactive. I want to hook the execution in such a way, so that after I add my custom scripting hooks, 6 months later I don't have to remember how it works. I just execute <code>activate.bat</code>, and I am off to the races.</p>