Don't remove sys.path[0].

Fixes https://github.com/davidhalter/jedi/issues/2053.
This commit is contained in:
Damian Birchler
2025-03-13 09:52:49 +01:00
committed by GitHub
parent a856a93bd1
commit 35a12fab7a

View File

@@ -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.