##// END OF EJS Templates
Revert "Fix for symlink resolving"
Matthias Bussonnier -
r27570:d73d0514 revert-13537-fix_...
parent child Browse files
Show More
@@ -785,11 +785,8 b' class InteractiveShell(SingletonConfigurable):'
785 # So we just check every item in the symlink tree (generally <= 3)
785 # So we just check every item in the symlink tree (generally <= 3)
786 paths = [p]
786 paths = [p]
787 while p.is_symlink():
787 while p.is_symlink():
788 new_path = p.readlink()
788 p = Path(os.readlink(p))
789 if not new_path.is_absolute():
789 paths.append(p.resolve())
790 new_path = p.parent / new_path
791 p = new_path
792 paths.append(p)
793
790
794 # In Cygwin paths like "c:\..." and '\cygdrive\c\...' are possible
791 # In Cygwin paths like "c:\..." and '\cygdrive\c\...' are possible
795 if p_venv.parts[1] == "cygdrive":
792 if p_venv.parts[1] == "cygdrive":
General Comments 0
You need to be logged in to leave comments. Login now