Looking for best practice for custom environment on tabs

Mar 4, 2009
The general question I have is what is the best practice to set up a customized environment for different tabs.

The specifics of what I am trying to do now is to set up different tabs that support different versions of Python. I want to set the PATH and PYTHONPATH environmental variables when I open a new tab via toolbar buttons.