Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe04260 commit 338ffdcCopy full SHA for 338ffdc
1 file changed
IPython/core/interactiveshell.py
@@ -923,8 +923,7 @@ def init_virtualenv(self):
923
paths.append(p.resolve())
924
925
# In Cygwin paths like "c:\..." and '\cygdrive\c\...' are possible
926
- if str(p_venv).startswith("\\cygdrive"):
927
- p_venv = Path(str(p_venv))
+ if p_venv.parts[1] == "cygdrive":
928
drive_name = p_venv.parts[2]
929
p_venv = (drive_name + ":/") / Path(*p_venv.parts[3:])
930
0 commit comments