How can developers set up their environment paths when working on different SVN branches of the same project so that they don’t need to setup their paths each time they switch from one branch to another?
I am a Python developer and I find myself working on different branches of the same project and it’s pretty ugly to export each time PYTHONPATH when I am switching from one branch to another.
That is if your IDE doesn’t do this automatically for you (I am using vim).
For another option, you could use a symlink, then have your environment variables point to it. Like:
Then if you want to work on branch2 just point ‘current’ to it. Your environment variables would point to ‘current’.