Skip to content

Commit

Permalink
Revert "Fix for symlink resolving"
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Feb 26, 2022
1 parent 5d74650 commit d73d051
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions IPython/core/interactiveshell.py
Original file line number Diff line number Diff line change
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 d73d051

Please sign in to comment.