Skip to content

Commit

Permalink
Merge pull request #13557 from ipython/revert-13537-fix_path_loop
Browse files Browse the repository at this point in the history
Revert "Fix for symlink resolving"
  • Loading branch information
Carreau committed Feb 26, 2022
2 parents 5d74650 + d73d051 commit 80f7917
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions IPython/core/interactiveshell.py
Expand Up @@ -785,11 +785,8 @@ def init_virtualenv(self):
# So we just check every item in the symlink tree (generally <= 3)
paths = [p]
while p.is_symlink():
new_path = p.readlink()
if not new_path.is_absolute():
new_path = p.parent / new_path
p = new_path
paths.append(p)
p = Path(os.readlink(p))
paths.append(p.resolve())

# In Cygwin paths like "c:\..." and '\cygdrive\c\...' are possible
if p_venv.parts[1] == "cygdrive":
Expand Down

0 comments on commit 80f7917

Please sign in to comment.