##// END OF EJS Templates
Merge pull request #13537 from bucknerns/fix_path_loop...
Matthias Bussonnier -
r27533:03812508 merge
parent child Browse files
Show More
@@ -774,8 +774,11 b' class InteractiveShell(SingletonConfigurable):'
774 # So we just check every item in the symlink tree (generally <= 3)
774 # So we just check every item in the symlink tree (generally <= 3)
775 paths = [p]
775 paths = [p]
776 while p.is_symlink():
776 while p.is_symlink():
777 p = Path(os.readlink(p))
777 new_path = p.readlink()
778 paths.append(p.resolve())
778 if not new_path.is_absolute():
779 new_path = p.parent / new_path
780 p = new_path
781 paths.append(p)
779
782
780 # In Cygwin paths like "c:\..." and '\cygdrive\c\...' are possible
783 # In Cygwin paths like "c:\..." and '\cygdrive\c\...' are possible
781 if p_venv.parts[1] == "cygdrive":
784 if p_venv.parts[1] == "cygdrive":
General Comments 0
You need to be logged in to leave comments. Login now