From 68bd61708e6d37494c595884ab8cb28d4ff585e2 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Wed, 5 Sep 2018 19:25:27 +0200 Subject: [PATCH] pkg_resources doesn't come packaged with the CPython stdlib --- jedi/plugins/typeshed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jedi/plugins/typeshed.py b/jedi/plugins/typeshed.py index 43880530..9793420a 100644 --- a/jedi/plugins/typeshed.py +++ b/jedi/plugins/typeshed.py @@ -1,6 +1,5 @@ import os import re -from pkg_resources import resource_filename from jedi._compatibility import FileNotFoundError from jedi.plugins.base import BasePlugin @@ -20,7 +19,8 @@ from jedi.evaluate.compiled.context import CompiledName from jedi.evaluate.utils import to_list -_TYPESHED_PATH = resource_filename('jedi', os.path.join('third_party', 'typeshed')) +_jedi_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +_TYPESHED_PATH = os.path.join(_jedi_path, 'third_party', 'typeshed') def _merge_create_stub_map(directories):