diff --git a/jedi/__init__.py b/jedi/__init__.py index c07d6eeb..21b79943 100644 --- a/jedi/__init__.py +++ b/jedi/__init__.py @@ -1,2 +1,8 @@ +import sys + +# python imports are hell sometimes. Especially the combination of relative +# imports and circular imports... Just avoid it: +sys.path.insert(0, __path__[0]) + from .api import Script, NotFoundError, set_debug_function from . import settings