Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check every link when detecting virutalenv #4737

Merged
merged 1 commit into from Dec 26, 2013

Conversation

minrk
Copy link
Member

@minrk minrk commented Dec 23, 2013

  • 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

- 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
@takluyver
Copy link
Member

Looks OK. Have you actually run into the problem, so you can check that this fix works?

@minrk
Copy link
Member Author

minrk commented Dec 24, 2013

Yes - prompted when using Python 3.4b1 with stdlib venv, where sys.executable is a symlink to the original python executable, rather than a patched binary.

takluyver added a commit that referenced this pull request Dec 26, 2013
check every link when detecting virutalenv
@takluyver takluyver merged commit c0ea28f into ipython:master Dec 26, 2013
@minrk minrk deleted the venv-symlinks branch March 31, 2014 23:36
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
check every link when detecting virutalenv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants