##// END OF EJS Templates
Use pathlib comparison over string comparison
Mithil Poojary -
Show More
@@ -923,8 +923,7 b' class InteractiveShell(SingletonConfigurable):'
923 paths.append(p.resolve())
923 paths.append(p.resolve())
924
924
925 # In Cygwin paths like "c:\..." and '\cygdrive\c\...' are possible
925 # In Cygwin paths like "c:\..." and '\cygdrive\c\...' are possible
926 if str(p_venv).startswith("\\cygdrive"):
926 if p_venv.parts[1] == "cygdrive":
927 p_venv = Path(str(p_venv))
928 drive_name = p_venv.parts[2]
927 drive_name = p_venv.parts[2]
929 p_venv = (drive_name + ":/") / Path(*p_venv.parts[3:])
928 p_venv = (drive_name + ":/") / Path(*p_venv.parts[3:])
930
929
General Comments 0
You need to be logged in to leave comments. Login now