ipython/ipython — pull request #4737 by minrk (2013-12-23 20:10:25+00:00)
Title: check every link when detecting virutalenv

- can't use just sys.executable, because the env python can be a link target
- can't use realpath, because the env python can be a link to outside the env