diff options
| author | AlexSm <[email protected]> | 2024-06-18 16:09:09 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-06-18 16:09:09 +0200 |
| commit | ae6be33d4462d1c1f93d7f99a9775167108fb09a (patch) | |
| tree | a9a2819f51548e8e55c59c48b74880f4e3f0e978 /contrib/python/ipython/py3/IPython/core/interactiveshell.py | |
| parent | 23e9c2f910ca634005304f9f8085adaf5b963463 (diff) | |
| parent | 5f058ae362f1af85ec0d816cc96eaca1c1750dab (diff) | |
Merge pull request #5661 from ydb-platform/mergelibs-240618-0830
Library import 240618-0830
Diffstat (limited to 'contrib/python/ipython/py3/IPython/core/interactiveshell.py')
| -rw-r--r-- | contrib/python/ipython/py3/IPython/core/interactiveshell.py | 2 |
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:]) |
