##// END OF EJS Templates
Restore cygwin path check
Mithil Poojary -
Show More
@@ -921,7 +921,11 b' class InteractiveShell(SingletonConfigurable):'
921 while p.is_symlink():
921 while p.is_symlink():
922 p = Path(os.readlink(p))
922 p = Path(os.readlink(p))
923 paths.append(p.resolve())
923 paths.append(p.resolve())
924
924
925 # In Cygwin paths like "c:\..." and '\cygdrive\c\...' are possible
926 if str(p_venv).startswith("\\cygdrive"):
927 p_venv = "C:" / Path(str(p_venv)[11:])
928
925 if any(p_venv == p.parents[1] for p in paths):
929 if any(p_venv == p.parents[1] for p in paths):
926 # Our exe is inside or has access to the virtualenv, don't need to do anything.
930 # Our exe is inside or has access to the virtualenv, don't need to do anything.
927 return
931 return
General Comments 0
You need to be logged in to leave comments. Login now