From b52a8ab5cd66952839ada0843539b5564108a052 Mon Sep 17 00:00:00 2001 From: robot-piglet Date: Sat, 15 Jun 2024 14:18:22 +0300 Subject: Intermediate changes --- contrib/python/ipython/py3/IPython/core/interactiveshell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/python/ipython/py3/IPython/core/interactiveshell.py') 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:]) -- cgit v1.3