-
-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix infinite recursion when ~/.pantsrc PEX_PYTHON points at a symlink
When ~/.pexrc sets PEX_PYTHON to a symlink, pex goes into an ~infinite loop. On each iteration, it checks whether target python == current python, and if not, it reexecs as target python. It previously called os.path.realpath on current but not on target, so for a symlink, they would never be equal. Testing Done: https://travis-ci.org/pantsbuild/pex/builds/91981334 Bugs closed: 182 Reviewed at https://rbcommons.com/s/twitter/r/3149/
- Loading branch information
Showing
2 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters