Show More
@@ -920,10 +920,10 b' class InteractiveShell(SingletonConfigurable):' | |||||
920 | paths.append(p.resolve()) |
|
920 | paths.append(p.resolve()) | |
921 |
|
921 | |||
922 | # In Cygwin paths like "c:\..." and '\cygdrive\c\...' are possible |
|
922 | # In Cygwin paths like "c:\..." and '\cygdrive\c\...' are possible | |
923 | if p_venv.startswith('\\cygdrive'): |
|
923 | if str(p_venv).startswith('\\cygdrive'): | |
924 | p_venv = p_venv[11:] |
|
924 | p_venv = Path(str(p_venv)[11:]) | |
925 | elif len(p_venv) >= 2 and p_venv[1] == ':': |
|
925 | elif len(str(p_venv)) >= 2 and str(p_venv)[1] == ':': | |
926 | p_venv = p_venv[2:] |
|
926 | p_venv = Path(str(p_venv)[2:]) | |
927 |
|
927 | |||
928 | if any(os.fspath(p_venv) in os.fspath(p) for p in paths): |
|
928 | if any(os.fspath(p_venv) in os.fspath(p) for p in paths): | |
929 | # Our exe is inside or has access to the virtualenv, don't need to do anything. |
|
929 | # Our exe is inside or has access to the virtualenv, don't need to do anything. |
General Comments 0
You need to be logged in to leave comments.
Login now