From 35a12fab7ad5752284f3e613ac4bbe102f09812c Mon Sep 17 00:00:00 2001 From: Damian Birchler Date: Thu, 13 Mar 2025 09:52:49 +0100 Subject: [PATCH] Don't remove `sys.path[0]`. Fixes https://github.com/davidhalter/jedi/issues/2053. --- jedi/inference/compiled/subprocess/__main__.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/jedi/inference/compiled/subprocess/__main__.py b/jedi/inference/compiled/subprocess/__main__.py index 58ccd2d6..897ebf33 100644 --- a/jedi/inference/compiled/subprocess/__main__.py +++ b/jedi/inference/compiled/subprocess/__main__.py @@ -3,10 +3,6 @@ import sys from importlib.abc import MetaPathFinder from importlib.machinery import PathFinder -# Remove the first entry, because it's simply a directory entry that equals -# this directory. -del sys.path[0] - def _get_paths(): # Get the path to jedi.