summaryrefslogtreecommitdiffstats
path: root/contrib/python/ipython/py3/IPython/core/interactiveshell.py
diff options
context:
space:
mode:
authorAlexander Smirnov <[email protected]>2024-06-18 08:31:45 +0000
committerAlexander Smirnov <[email protected]>2024-06-18 08:31:45 +0000
commit8da3a80eb37bb357a4a994464851104565fd9490 (patch)
tree021aa0770c7bb74d27d8731629ce6f5abd1e84e9 /contrib/python/ipython/py3/IPython/core/interactiveshell.py
parent05cc35d98bf2bd929c00b02fcd98fd65a1b676ad (diff)
parentd68a678bf36d213cb890d8bdfbdf34df6a40f8c1 (diff)
Merge branch 'rightlib' into mergelibs-240618-0830
Diffstat (limited to 'contrib/python/ipython/py3/IPython/core/interactiveshell.py')
-rw-r--r--contrib/python/ipython/py3/IPython/core/interactiveshell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/python/ipython/py3/IPython/core/interactiveshell.py b/contrib/python/ipython/py3/IPython/core/interactiveshell.py
index e9e649345fb..86eb7191e84 100644
--- a/contrib/python/ipython/py3/IPython/core/interactiveshell.py
+++ b/contrib/python/ipython/py3/IPython/core/interactiveshell.py
@@ -909,7 +909,7 @@ class InteractiveShell(SingletonConfigurable):
paths = self.get_path_links(p)
# In Cygwin paths like "c:\..." and '\cygdrive\c\...' are possible
- if p_venv.parts[1] == "cygdrive":
+ if len(p_venv.parts) > 2 and p_venv.parts[1] == "cygdrive":
drive_name = p_venv.parts[2]
p_venv = (drive_name + ":/") / Path(*p_venv.parts[3:])